Srujan Kumar Gulla
Srujan Kumar Gulla

Reputation: 5841

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.

Upvotes: 7

Views: 1700

Answers (1)

Sotirios Delimanolis
Sotirios Delimanolis

Reputation: 279890

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.

Upvotes: 7

Related Questions