About 175,000 results
Open links in new tab
  1. 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 > Programs > Java > About. For me, that shows Version 8. That's despite java -version showing version 11.0.15. And it doesn't change even if I point my JAVA_HOME to JDK 11.

  2. java - Switch JDK version in Windows 10 cmd - Stack Overflow

    Nov 24, 2017 · So, whenever a command prompt is opened, it automatically loads profile.bat, which creates those two alias in the script. Step 7. Close any command prompt you're using or just open a new command prompt. This is because your changes will not affect opened cmd window. Environment changes only happens to new CMD. Step 8. Verify your results here.

  3. java --version doesn't work in the command line - Stack Overflow

    Jul 18, 2012 · I tried java --version in the command line and I get : Unrecognized option: --version Error: Could not create the Java virtual machine Error: A fatal exception has occurred. Program will exit.

  4. java - Switching between different JDK versions in Windows

    Nov 18, 2014 · Save this batch file as SJV.bat and add this file location in your machine's Path environment variable. So now SJV will act as command to "Switch Java Version". Now open new command window and just type SJV 11 it will switch to Java 11. Type SJV 8 it will switch to Java 8. PowerShell Version

  5. "java -version"in cmd gives no result - Stack Overflow

    Dec 17, 2020 · Solution. Please first run the following command "c:\Program Files\Java\jdk-14.0.2\bin\java" --version If that returns a result remove the following entries from your PATH

  6. How to get java version using single command in Windows …

    Jan 21, 2015 · I need to fetch java version 1.6.0_26 from the below java -version output. java version "1.6.0_26" Java(TM) SE Runtime Environment (build 1.6.0_26-b03) Java HotSpot(TM) Client VM (build 20.1-b02, mixed mode, sharing) Please help me getting 1.6.0_26. Note: I don't need power shell or any external programs. UPDATE. I came up with java -version 2 ...

  7. Java version does not change in windows command prompt

    5. Now again type java -version(This will still show the old java version but not the new version which we set) Success Step: 1. Win + R 2. Type open command window here and hit enter 3. Type java -version (Just to check if the version is the old one which we need to change) 4. Now try changing the path/classpath using set path=/classpath= 5.

  8. "java -version" not working in command prompt - Stack Overflow

    Oct 3, 2013 · I might not have installed the right version. I need the java that works with grails. C:\>java 'java' is not recognized as an internal or external command, operable program or batch file. C:\>java -version 'java' is not recognized as an internal or external command, operable program or batch file. C:\>

  9. 'Java' is not recognized as an internal or external command

    I opened a new command prompt in Windows 10 after updating the environment variables without closing the old one(To have my commands handy and lazy to type again) Still, the new cmd window was referring to the previous version of Java. Then once I closed the all cmd prompts that ran with admin privileges, the new java version was getting reflected.

  10. How to run a specific version of Java with a program?

    I am somewhat of a newbie when it comes to Windows and Java PATH structure, so . Stanford's computer science course has you use a modified version of Eclipse to code in Java, and it was created when Java was still in version 6. If you are familiar with this, then you may know of karel the robot, a Java application that opens in Eclipse.

Refresh