How to Check Java Version in Linux?
Contents

Procedure

  • Open a Linux command prompt.
  • Enter the command java -version.
  • If Java is installed on your system, you see a Java installed response. Check the version number in the message.
  • If Java is not installed on your system, or the version of Java is earlier than 1.6, use YaST to install a compatible version.

How do I check my Java version?

To check your Java Version in Windows 7

  1. Open the Start menu, and click Control Panel.
  2. Type Java into the search field and double-click the Java icon. The Java Control Panel appears.
  3. Click the General tab if it is not already open.
  4. Click the About button.

How do I know if JDK is installed Linux?

1) Go to Control Panel–>Program and Features and check if Java /JDK is listed there. 2) Open command prompt and type java -version. If you get the version info, Java is installed correctly and PATH is also set correctly. 3) Go to start menu–>System–>Advanced–>Environment Variables.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest