are you making a java or java script game. they aren't the same thing.
Java games are usually Applets made using Sun Java SDK.
Java script a scripting language. I've not made any games in it but it's possible.
syntax is similar for both but they apis are different.
If you want to try and make a 3d game in java, you should check out JMonkeyEngine, which is a 3D engine written in java (just google for the webpage). They have some tutorials there on how to use the engine that you might find useful. Also, before you begin, you should head to the java website (i believe it is java.sun.com) and get the newest version (java 1.5.0) which may be called something to the effect of J2SE 5. Good luck making your game!