Child pages
  • Post-Installation Modifications

Versions Compared

Key

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

...

  1. Open the ../developer/Servoy.ini file in a text editor. (For Mac users, this file is exposed when you view in the MacOS folder, in the Servoy application package contents and browse to the MacOS folder.)
  2. Change the -Xmx argument, for example, from -Xmx512m to Xmx1024m.
  3. Restart Servoy to effect the changes.

...

  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:'

    2. here, add a line as (with the path to your the Java 1.7 install):

      Code Block
      <string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java</string>
  2. 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 the Java 1.7 install:

      Code Block
      -vm
       /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java
  3. In this same directory (.../developer/servoy.app/Contents/MacOS/) create a script called servoy.sh, which contains the following text:

    Code Block
    #\!/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

    Make sure the script can be executed (maybe execute a chmod a+x servoy.sh)

  4. Make sure the JAVA_HOME points to the Java 1.7 install
  5. Launch Servoy using the created servoy.sh script

...