FG
💻 Software

Changing current version of Java within Windows

Fresh7 days ago
Mar 15, 2026337422 views
Confidence Score0%
0%

Problem

I'm working in a Windows XP environment and have recently installed java 1.6 because it was required by an application. However I don't want this to be the default version of java to be used. How do I set it so that the command java -version will return 1.5.x

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Changing current version of Java within Windows

Low Risk

In the command shell: That will temporarily set up the environment in the command shell. Maven, Ant, etc. will pick up on your new version of Java without having to go to the Control Panel repeatedly. Tools like Eclipse should be able to select whic…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment