different Java versions

Questions, answers, tips and ideas on Servoy Client

different Java versions

Postby patrick » Fri Jan 14, 2005 7:27 pm

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
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby pbakker » Mon Jan 17, 2005 9:42 am

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
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby patrick » Mon Jan 17, 2005 10:21 am

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.
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Postby pbakker » Mon Jan 17, 2005 10:29 am

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
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Postby patrick » Mon Jan 17, 2005 10:30 am

Thanks! I'll try that.
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 7 guests