This question already has answers here:
java --version doesn't work in the command line
(2 answers)
Closed 10 months ago.
I am using a 32 bit windows 7 OS and I have installed JDK 8 as it was the only available JDK version for a 32 bit system. I have also given the path in the environment variables. But, when I am trying to check the java version in the command prompt typing java --version, I am getting a fatal error.
You should double check if your path variable is set correctly. It should point to the ...\bin\ directory where the 'java.exe' is located. Because thats whats called with 'java --version'.
Related
This question already has answers here:
JAVA_HOME and PATH are set but java -version still shows the old one
(10 answers)
Closed 4 years ago.
I tried installing java on Amazon linux.
I installed jdk 1.8.0 and I changed PATH to .bash_profile
export JAVA_HOME=/home/.../jdk1.8.0_192
export PATH=$JAVA_HOME/bin:$PATH
but java -version still returns old java version (1.7.0)
I checked the result was JAVA_HOME = /usr/lib/jvm/jre
if I check which java then the result is /usr/bin/java
how to change the java version to the new one?
you need to type below command on shell
sudo update-alternatives --config java
It will display all available JRE and you need to type the number which java you want to select(You can perform this for javac also).
This question already has answers here:
Error when checking Java version: could not find java.dll
(19 answers)
Closed 4 years ago.
Why on writing java -version on cmd it shows 3 error although i have installed Java Jdk and jre installed in my system?
errors are as follow:
oppening register key 'software\JavaSoft\JRE'
could not find java.dll
Could not find Java SE Runtime Environment.
it shows error:
Go to: Advanced system settings -> Environment variables
in the system variables section add variable name : JAVA_HOME , and value the path of your jdk . then try again .also add jre path in the path variables .
This question already has answers here:
How to set java_home on Windows 7?
(18 answers)
Closed 4 years ago.
I have java 1.9 installed on my machine. I can see it in installed programs. But when i type java -version on command prompt it still shows 1.8. How can i change it ?
I assume you meant 1.8
Windows and Linux allow multiple JRE to be installed. They have different mechanisms for determining which JRE is used by default. Basically, it comes down to your system path.
This question already has answers here:
How to set the environment variables for Java in Windows
(17 answers)
Closed 5 years ago.
On my windows 7, 64 bit pc, I have installed java but while typing java -version in command prompt it shows java' is not recognized as an internal or external command, operable program or batch file.".and there is no java folder in program files even.The java version which i have installed is 8 and it is 64bits.
Try setting the environment variables.
The answer can be found on this SO page.
You must install the latest version of JDK from here:
Download JDK From Here
After Installing the latest version follow these steps :
Setting Path in Java
Hope this will help you out.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Cannot run Eclipse; JVM terminated. Exit code=13
I downloaded Eclipse eclipse-jee-galileo-SR2-win32 in zip format then I extract the same on my harddisk.
So when I clicked on eclipse.exe I am getting following window as alert.
Though I have java 1.6_35 installed on my machine.
After googling a lot so far I am unable to rid on this.
how to start eclipse now.
same is working fine on other machine.
Check your eclipse.ini file (in the same folder as the exe). Maybe it does not point to the location where your java is installed.
Search for a line like this
-vm c:/Program Files/Java/jdk1.6.0_22/bin/javaw.exe
Make sure if your jvm is 32 bit.
you can find by running
java -version .
you have eclipse for 32-bit jvm (-arch x86).