Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java default version doesnt reflect after PATH change

I am running currently on Java 1.7.0_17 64bit version and I want to launch an app using Java 32 bit version.

I updated PATH variable to point to (C:\Program Files (x86)\Java\jre7\bin) Java 32 bit version. Then did a java -version it still shows the 64bit version.

I gave up and tried to do a java -d32 -jar abc.jar and then it gives me an

java -d32
Error: This Java instance does not support a 32-bit JVM.
Please install the desired version.

Please let me know how can the system refresh the latest Java settings done in the PATH variable.

like image 431
Srujan Kumar Gulla Avatar asked Dec 05 '13 20:12

Srujan Kumar Gulla


1 Answers

There is probably a java.exe in your C:\WINDOWS\System32\ folder leftover from the previous installation. Replace it with the one in C:\Program Files (x86)\Java\jre7\bin.

like image 125
Sotirios Delimanolis Avatar answered Oct 20 '22 01:10

Sotirios Delimanolis