different Java versions

Hello,

I have 2 Java versions installed at the same time (1.4.2 and 1.5). When I launch developer it uses 1.5. I know where I can control the version used in the client, but I don’t know how I can control which version developer uses upon startup. Does anybody know?

Thanks
Patrick

My guess, at least on windows, is in the servoy_developer.bat.

Instead of:

java -classpath servoy_developer.jar Servoy

do:

c:\j2sdk1.4.2_06\bin\java -classpath servoy_developer.jar Servoy

Basically, you point to the exact java executable that you want to be used.

Paul

I thought so. But probably there is a way to tell my whole system what to use… For Web start apps there is one place where you can choose in the system settings, but not for Java apps as far as I could find.

If you’re on windows, you’d have to look at the Environment variables (Start - Settings - Control Panel - System - Advanced - Environment Variables (Can differ a bit between Windows versions))

Once there, look for the JAVA_HOME and PATH system variables. They should point to the Java installation you want to use.

Changing them should do the trick, in general.

Paul

Thanks! I’ll try that.