Try this to check the version:
javac -version java -version
For javac, if you aren't on 1.5, the -version won't work.
You can use
javac -J-version
in any version
That will cause javac to pass -version when it invokes java, which will tell you the VM version, but not the javac version.
The two will usually be in sync, though--I'm just being a pedantic ballsniffer.
Subscribe to:
Posts (Atom)