Page 1 of 1

Multiple Java Versions installed - Start Servoy with Java 7

PostPosted: Tue Dec 17, 2013 1:57 pm
by LXS
Hi,

i'm on Windows 8.1 and have multiple Java JREs/JDKs installed.
One of them is Java 1.6.0_43 and the latest Java 7 (1.7.0_45).

I don't want to uninstall the Java 6, because i need it.

How can i start Servoy 7.3 with Java 7, because i need this to use JavaFX bean.

I saw, that on Mac OS X there are some modificatons needed (https://wiki.servoy.com/display/public/ ... ifications)
So i added the 2 lines in my servoy.ini:

-vm
C:\Program Files (x86)\Java\jre7\bin\java.exe

But with this setting Servoy/Eclipse does not start and shows an error screen (see screenshot).

Thanks a lot!
Alex

Re: Multiple Java Versions installed - Start Servoy with Jav

PostPosted: Tue Dec 17, 2013 3:08 pm
by mboegem
Hi,

my .ini file looks like this and works:
Code: Select all
-clean
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
--launcher.XXMaxPermSize
256m
-vm
C:\Program Files\Java\jre7\bin\java.exe
-vmargs
-Dnativeswing.dependencies.checkVersions=false
-Dsun.awt.disableMixing=true
-Xms40m
-Xmx1024m
-XX:MaxPermSize=256M

Re: Multiple Java Versions installed - Start Servoy with Jav

PostPosted: Tue Dec 17, 2013 3:46 pm
by LXS
thanks for your config Marc!

It seems that it's not possible to use Java 1.7.0_45 (32 bit) on a Windows 8.1 x64 machine.
Now i've installed the 64 bit version of Java and it works! :)

Thanks a lot!
Alex