Page History
...
- Open the
../developer/Servoy.ini
file in a text editor. (For Mac users, this file is exposed in theMacOS
folder, in the Servoy application package contents) - Change the
-Xmx
argument, for example, from-Xmx512m
toXmx1024m
. - Restart Servoy to effect the changes.
Install Mozilla XulRunner As Internal Browser
Servoy Developer uses a browser component in several locations, like the Developer Start Page and the updated Form Editor for Servoy Mobile in Servoy 7.4.
By default the browser component used is the default browser of the operating system, so Internet Explorer on Windows or Safari on OSX.
In case of issues with the default browser (especially with the Form Editor), it is possible to install a FireFox based browser component called XulRunner into Servoy Developer, which will then be used instead of the default browser.
The XulRunner browser is available as plugin and can be installed using the following steps:
- Go to Help > Install New Software...
- Select the Xulrunner Plugin update site from the available sites or use https://www.servoy.com/developer/xulrunner if the Xulrunner Plugin update site is not available
- Follow the steps of the installation wizard to install the plugin
After the plugin is installed and before Servoy Developer is restarted the servoy.ini file in the
{servoyInstall}/developer
directory needs to be updated. Add the following line to the end of this file:Code Block -Dorg.eclipse.swt.browser.DefaultType=mozilla
After restart of Servoy Developer the XulRunner browser component will be used as browser component inside Servoy Developer.
Running Servoy Developer on Java 7 under MAC OSX
If running Servoy Developer on OSX and there is a need to run Java 7 (for example for JavaFX integration ), some extra steps are required, as due to a bug in Eclipse (on which Servoy Developer is based), the process of running Servoy Developer on Java 7 is not as straight forward.
To setup Servoy Developer on OSX to work with Java 7 (assuming Java 7 is already installed) the following steps need to be performed:
- Navigate to
/path/to/servoy/developer/servoy.app/Contents/
and edit theInfo.plist
file: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:'
here, add a line as (with the path to the Java 1.7 install):
Code Block <string>-vm</string><string>/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java</string>
- Navigate to
/path/to/servoy/developer/servoy.app/Contents/MacOS/
and edit theservoy.ini
file:above the '-vmargs' line, add two lines, as follows, but corresponding to the Java 1.7 install:
Code Block -vm /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java
In this same directory (
.../developer/servoy.app/Contents/MacOS/
) create a script calledservoy.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
)- Make sure the
JAVA_HOME
points to the Java 1.7 install - Launch Servoy using the created
servoy.sh
script
To double check that Servoy Developer actually runs with 1.7, in the Servoy Developer go to Help > About Servoy Developer > Installation Details > Configuration, and see java.runtime.version
for example)
Info | ||
---|---|---|
| ||
The four steps above correspond to advice from https://www.servoy.com/forum/viewtopic.php?f=5&t=19253#p103941 |
Running Servoy Developer on a specific Java version under Windows
...