Try to follow the instructions in the link I posted.
When you have installed JDK and updated your PATH try to open a command prompt (DOS, xterm ect.) and type "java" and "javac".
If you've set the path correct you wont get a message a la "java is not a regocnized command or filename".
To compile a Java file do the following: 1) create a file, e.g. Hello.java 2) open the file and start typing java code, e.g.
3) goto the directory that contains the file you created 4) type "javac <filename>", e.g. javac Hello.java the file will then be compiled and a class file will be generated which can be executed. 5) If the file compiled without errors type: "java File", e.g. "java Hello" which should print "Hello World".
What are you finding difficult? If you can't understand any of the tutorials, you might have a problem. If there are certain parts of the turorials you don't understand, feel free to ask quesitons about them here. Someone will probably help. Or if you are stuck with something not mentioned in the tutorials, post a question about that and someone is liable to help.
Ah so it is an OS problem, not a Java problem. I'll assume since you mention cmd that you are using Windows. You will need to make sure that you JDK/bin directory is in your PATH. This is how Windows finds executables to run. With Windows you have two ways to set the path:
By calling SET PATH=[whatever your path is] from the command line. This has the downside that it is only set for the lifetime of the command window.
By setting the path as an environment variable. How you do that depends on which version of Windows you have. XP is the current version so I'll use that as the example: got to Start>Settings>Control Panel>System, click on the Advanced tab, then the Environment Variables tab. Set it in there.
[ November 15, 2006: Message edited by: Paul Sturrock ]