Bantuan GoDaddy

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.

Warning: 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:

java -version

As long as you have classnames set up, there is a second command-line option of -showversion.

java -showversion Test

Apakah Artikel Ini Berguna?
Terima kasih atas masukan Anda. Untuk berbicara dengan perwakilan layanan pelanggan, hubungi nomor ponsel dukungan atau gunakan opsi chatting di atas.
Senang bisa membantu! Ada hal lain yang dapat kami lakukan untuk Anda?
Maaf tentang hal tersebut. Sampaikan apa yang membuat Anda bingung atau mengapa solusi tersebut tidak mengatasi masalah Anda.