Wednesday, October 29, 2008

How to know the installed Java and where is the installed path?

To know the installed version you can type the command javac/java with the option -version:
$ javac -version
$ java -version

To check where is the installed path, use the which command:
$ which javac
$ which java