How to check my Java version on CentOS
java is a utility program for starting Java applications. It creates a runtime environment, loads the specified class, and then invokes that class's main() method. If the optional -jar command-line parameter is specified, instead of getting the initial class name from the command line, the program reads the initial class from the manifest file within the specified JAR file. There are many command line options available to help configure the runtime environment, like to increase available memory, identify where to find needed classes/libraries, or display the version information.
GoDaddy's shared hosting accounts do not support Java.
|DIFFICULTY||Basic - 1 | Medium - 2 | Advanced - 3|
|TIME REQUIRED||1 min|
|RELATED PRODUCTS||Linux-based VPS or dedicated servers|
To find out what version of Java you are using, just pass the -version command-line option to the tool:
As long as you have classnames set up, there is a second command-line option of -showversion.