Theoretically this servoy.ini file should work (with the line following vm pointing to the path for your JDK):
- Code: Select all
-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.101.v20120109-1504
--launcher.XXMaxPermSize
256m
-vm
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/java
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms40m
-Xmx1024m
-XX:MaxPermSize=256M
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
See http://wiki.eclipse.org/Eclipse.ini for more details.However, there is a
bug with Eclipse where specifying the vm doesn't work on Macs. For the record, it seems more like a
by design decision to me. Either way you cut it, specifying the vm in this way will not work on Mac OS X.
About a year ago, I played around with getting Servoy Developer to use the JDK from Oracle and this answer helped:
http://stackoverflow.com/questions/10352715One thing to remember if you go this route is that neither servoy.ini or Info.plist are used with this setup. So you'll need to add the missing java-related lines from both.
Here is the servoy.sh file that worked for me:
- Code: Select all
#!/bin/sh
#
export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
LAUNCHER_JAR=../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
LAUNCHER_LIB=../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.101.v20120109-1504
java \
-showversion \
-XX:MaxPermSize=256m \
-Xms40m \
-Xmx512m \
-Xdock:icon=../Resources/servoy.icns \
-XX:+UseParallelGC \
-XstartOnFirstThread \
-Dorg.eclipse.swt.internal.carbon.smallFonts \
-Dnativeswing.interface.inprocess.useExternalSWTDisplay=true \
-Dnativeswing.dependencies.checkVersions=false \
-Dsun.awt.disableMixing=true \
-Dosgi.requiredJavaVersion=1.6 \
-jar $LAUNCHER_JAR \
--launcher.library $LAUNCHER_LIB
Although I met with some success at the time, I didn't wind up actively using it because Eclipse 3.6 (the version used in Servoy 6) was pretty unstable with Java 1.7 on the Mac. I'm trying to get it to start up now and I can't; probably I updated the JDK since then or something. In any event, I'd be interested to know if you're able to get this working.