Why doesn't Oxygen use the default JRE?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
heavydawson
Posts: 14
Joined: Wed Sep 20, 2006 7:07 pm

Why doesn't Oxygen use the default JRE?

Post by heavydawson »

I have a system with multiple JREs installed.
The latest version of each Java release from 2-6 are installed, but Java 6 is set as my default JRE (latest installed, along with the JAVA_HOME variable pointing to it's location).
But Oxygen seems to use the Java 5 JRE (1.5.0_10) regardless.

Eclipse always detects default JRE installations and uses the latest installed. I'm just wondering why Oxygen doesn't appear to do the same.

How does Oxygen determine which JRE to use?
heavydawson
Posts: 14
Joined: Wed Sep 20, 2006 7:07 pm

Post by heavydawson »

I should add I'm using Oxygen 8.0 on Windows 2000
heavydawson
Posts: 14
Joined: Wed Sep 20, 2006 7:07 pm

Post by heavydawson »

I just ran the Oxygen.bat batch file included with version 8.0 and it picked up the Java 6 JRE. I had to re-enable text-anti-aliasing (Due to the new AA abilities of Java 6 I guess - there were more options on the AA menu).

Still curious as to why Oxygen.exe does not pick up the Java 6 JRE?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

When you start oXygen 8.0 from the shortcut which points to the .exe launcher the preferred Java version is 1.5 because Java 1.6 was not released so it could not be tested before the release of oXygen 8.0. You can set your preferred Java version by adding a line

Code: Select all

JRE Path=[path-to-home-dir-of-your-preferred-JRE]
to the file [oXygen-install-dir]/oxygen8.0.ini as explained in the User Manual.

oXygen 8.1 will have Java 1.6 as preferred version.


Regards,
Sorin
heavydawson
Posts: 14
Joined: Wed Sep 20, 2006 7:07 pm

Post by heavydawson »

Hey Sorin,
Thanks for the reply. I guess I was curious as to how Oxygen even FOUND Java 5 on my system when Java 6 was set up as the default JRE and my JAVA_HOME environment variable was set to to the Java 6 directory. Oxygen must obviously have another way of finding a Java 5 JRE and using it.
But you've been more than helpful. Thanks for the great tool and the excellent support to match it.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

oXygen looks into your Windows registry to find a JRE for executing oXygen. oXygen 8.0 has Java 1.5 as preferred version so when it finds a path to Java 1.5 does not look any more for a more recent Java version.


Regards,
Sorin
Post Reply