Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to find out javac version

Status
Not open for further replies.

redss

Programmer
Oct 20, 2002
195
0
0
how can I find out the version of my javoc compiler?
"-version" is not a valid option for javac (like it is with java.exe)
 
I had a look at the doc page on javac that comes with the sdk and there doesn't seem to be a way of doing it (unless it's undocumented and weird ie doesn't use a simple -version).
 
javac depends on the version of the SDK - so typing
"java -version" will give you the "version" of javac - though to be picky - its not the version of javac that you really mean - its the SDK and JVM version which you are interested in.
 
javac -J-version will report correct version even if the PATH and CLASSPATH are pointing the another jdk.

Sean McEligot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top