Surface with Windows RT and Windows RT 8.1 preview do not support Java. Also go through http://answers.microsoft.com/en-us/windows/forum/windows_rt-windows_store/win-rt-java-support/7e6abe06-5ee7-4ea2-b6f3-aef5a8e6b1d4
Hope this helps!