You'll have to check your CLASSPATH.
And how to you compile? i.e. Which IDE do you use? Or do you compile and run through cmd?
Yeah, the problem was Classpath, thanks!
Right now I am still using the JDK plain and simple through CMD.
Still I find weird that I have to run the java or javac commands in the same bin dir of the jdk, even after setting the Classpath correctly.
If I am in another dir and type 'java - version' I get:
'java' is not recognized as an internal or external command,
operable program or batch file.