About 204,000 results
Open links in new tab
  1. How to check java version at linux (RedHat6) - Stack Overflow

    Dec 4, 2017 · To check which version of Java is installed, follow this procedure: -Open a Linux command prompt. -Enter the command java -version.-If Java version is installed on your …

  2. Bash command to check if Oracle or OpenJDK java version is …

    Apr 6, 2016 · I need a bash line to check if java version currently installed is Oracle's or OpenJDK. A one-liner by parsing the output of the java -version command: java -version java Oracle …

  3. java - Which JRE am I using? - Stack Overflow

    Dec 17, 2019 · Version: java -version Location: where java (in Windows) which java (in Unix, Linux, and Mac) To set Java home in Windows: Right click on My computer → Properties → …

  4. How to fetch Java version using single line command in Linux

    I want to fetch the Java version in Linux in a single command. I am new to awk so I am trying something like . java -version|awk '{print$3}' But that does not return the version. How would I …

  5. Correct way to check Java version from BASH script

    Sep 7, 2011 · Determining the Java version only using grep with Perl-style regex can be done like this: java -version 2>&1 | grep -oP 'version "?(1\.)?\K\d+' This will print the major version for …

  6. java - How to know the jdk version on my machine? - Stack Overflow

    Feb 16, 2023 · Seems like java -version used to be a way to do this, but no longer. Adding to the complexity, you can also supposedly get your Java version info from Control Panel > …

  7. linux - Find all Java versions in the system path - Stack Overflow

    Jun 6, 2017 · which -a java | xargs -I{} echo "echo {};{} -version;echo" | sh. This will print the path to each of the java executables found in the system path, as well as the version information of …

  8. How to check java bit version on Linux? - Stack Overflow

    Aug 9, 2013 · How do I check which bit version of Java is installed on my linux machine? When I type: java -version I get: java version "1.6.0_16" Java(TM) SE Runtime Environment (build …

  9. linux - How to find which version of Java in Java installed folder ...

    Jan 4, 2016 · A version of java is installed on my Linux machine. When i try this: root@test$: javac -version. It given the result as: javac jdk1.7.0_80. Now my problem is i don't know where …

  10. JAVA_HOME directory in Linux - Stack Overflow

    Jul 13, 2009 · java -XshowSettings:properties -version 2>&1 > /dev/null | grep 'java.home' Outputs all of java's current settings, and finds the one called java.home. For windows, you can go with …

Refresh