I need to test some components that require Java 1.5 (32-bit).
I used to be able to do this in 3.x by editing info.plist JVMVersion property to 1.5*
I've tried changing Java Prefs to run Java 5 32-bit, and confirmed it in terminal
- Code: Select all
~$ java -version
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)
However when I start Eclipse and run this
- Code: Select all
application.output( "\nJava Version: " + plugins.it2be_tools.client().javaVersion)
I get Java Version: 1.6.0_20
I've edited this section of the Servoy developer info.plist to read
- Code: Select all
<key>Eclipse</key>
<array>
<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options:
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/java</string>
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>
-->
<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>
<string>-keyring</string><string>~/.eclipse_keyring</string>
<string>-showlocation</string>
<!-- WARNING:
If you try to add a single VM argument (-vmargs) here,
*all* vmargs specified in eclipse.ini will be ignored.
We recommend to add all arguments in eclipse.ini
-->
</array>
and confirmed that Versions/1.5.0 is actually Java 5 (and not a symlink to Java 6, which is the default when Apple updates Java on Mac 10.6)
Should I be editing something in servoy/application_server to get SC and WC to run java 5 in Developer?
Thanks in advance.