Getting Servoy Developer to run in Java 1.5 on Mac OS X

Hopefully this is a simple problem:

I am running Servoy 3.0 on Mac OS X 10.4.7 on a Mac Pro.

My CurrentJDK Symlink (/System/Library/Frameworks/JavaVM.Framework/Versions/) points to the 1.5 directory. When I do “java -version” in the Terminal, I get this:

java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-113)
Java HotSpot(TM) Client VM (build 1.5.0_06-68, mixed mode)

So, in theory, Servoy Developer should run under Java 1.5, right? But no… in the Servoy about dialog, I get:

Servoy Developer
Version 3.0-build 371
Java version 1.4.2-67 (Mac OS X)

How do I make Servoy use Java 1.5?[/code]

Hi,

Servoy can be run under Java 1.5 with no problems.
Just make sure you have the all the correct settings in /Applications/Utilities/Java/J2SE 5.0/Java Preferences.app

Here you see a screenshot of the settings. You need to set both top and bottom settings.

Thanks, Robert. That did the trick. I’m glad it really was a simple solution.

I figured that the J2SE 5.0 setting on top was enough, but indeed, reordering the bottom list to put 5.0 ahead of 1.4.2 is what enabled it. Re-reading it now, Servoy is a Java APPLICATION, not an Applet. Duh.

Now, bonus points to anyone who can tell me when the CurrentJDK symlink is looked at. I don’t understand why it’s necessary with the settings here in the Java Preferences application.

Some applications ask specifically for a certain Java version. In that case the symlink is not used. Whenever that is not the case the symlink is used…