Child pages
  • Post-Installation Modifications

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To setup Servoy Developer on OSX to work with Java 7 (assuming Java 7 is already installed) are the following steps need to be performed:1)

  1. Navigate to /path/to/servoy/developer/servoy.app/Contents/ and edit the Info.plist file:

      ...

        1. go to the part where it says something like 'to use a specific Java version (instead of the platform's default) uncomment one of the following options:'

      ...

        1. here add a line as (with the path to your Java 1.7 install): '<string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java</string>'

      ...

      1. Navigate to /path/to/servoy/developer/servoy.app/Contents/MacOS/ and edit the servoy.ini file:

          ...

            1. above the '-vmargs' line, add two lines, as follows, but corresponding to your Java 1.7 install:
              -vm
              /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java

          ...

          1. In this same directory (.../developer/servoy.app/Contents/MacOS/) create a script called servoy.sh, which contains the following text:
            Code Block
            #\!/bin/sh

          ...

          1. 
            \#

          ...

          1. 
            export JAVA_HOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home

          ...

          1. 
            LAUNCHER_JAR=../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar

          ...

          1. 
            LAUNCHER_LIB=../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.101.v20120109-1504

          ...

          1. 
            java \

          ...

          1. 
            \-showversion \
            \

          ...

          1. -XX:MaxPermSize=256m \
            \

          ...

          1. -Xms40m \
            \

          ...

          1. -Xmx512m \

          ...

          1. 
            \-Xdock:icon=../Resources/servoy.icns \
            \

          ...

          1. -XX:+UseParallelGC \
            \

          ...

          1. -XstartOnFirstThread \

          ...

          1. 
            \-Dorg.eclipse.swt.internal.carbon.smallFonts \

          ...

          1. 
            \-Dnativeswing.interface.inprocess.useExternalSWTDisplay=true \

          ...

          1. 
            \-Dnativeswing.dependencies.checkVersions=false \

          ...

          1. 
            \-Dsun.awt.disableMixing=true \

          ...

          1. 
            \-Dosgi.requiredJavaVersion=1.6 \
            \

          ...

          1. -jar $LAUNCHER_JAR \
            \

          ...

          1. --launcher.library $LAUNCHER_LIB

          ...

          1. note: make sure the

          ...

          1. script can be executed (maybe execute a 'chmod a+x servoy.sh', without the quotes)

          ...

          1. make sure the JAVA_HOME points to the Java 1.7 install
          2. Launch Servoy using the created servoy.

          ...

          1. sh script

          To doublecheck that Servoy Developer actually runs with 1.7 (check Servoy Developer->About Servoy Developer->Installation Details->Configuration , see  Servoy Developer > About Servoy Developer > Installation Details > Configuration java.runtime.version for instance)
          NOTE: the four steps above correspond to advice from https://www.servoy.com/forum/viewtopic.php?f=5&t=19253#p103941