Servoy will not start

Good evening,

by upgrading to Java 8 Update 45 (64bit) something might gone wrong - I can not start Servoy anymore.

See the message resp. the added screenshot.
I deinstalled Java and installed it again - did not help.
Another Java based program (JAlbum) works fine

Any idea?

Thanks and greetings from Berlin

Ralf

Hi Ralf

Try re-installing Servoy.

Hi Ralf,

mboegem:
Try re-installing Servoy.

You can do that, Servoy Eclipse installer will install specific things based on the Java version at the moment of installation.
Since your -VM parameter in the eclipse.ini (see your screenshot) points to the general javapath which now (sym)links to Java8 things will break.

So you can reinstall Servoy Developer to make it use Java 8 or you can change the eclipse.ini and change the -VM parameter to C:\Program Files\Java\jdk1.7.0\bin\javaw.exe (or whatever your actual path to java 7 is) so it keeps using Java 7.

Hope this helps.

Hi Robert,
thanks for the tipp.

Sorry, but I can’t find eclipse.ini on my system…
In which directory? Another name??

Thanks
Ralf

Robert meant servoy.ini which is in ServoyInstall/developer.

Probably the easiest on Windows though would be to set up an environment variable JAVA_HOME to point to the JDK/JRE install you want to use.

Thanks Robert,

I too got the same error after upgrading to java 8 and with reference to your post i.e changing VM variable path to java 7 in servoy.ini file worked perfect, without reinstalling servoy.

Cheers… :)

ptalbot:
Robert meant servoy.ini which is in ServoyInstall/developer.

Thanks Patrick!
Correct, I meant servoy.ini. Servoy rebranded that file :)

Hi Patrick,

ptalbot:
Probably the easiest on Windows though would be to set up an environment variable JAVA_HOME to point to the JDK/JRE install you want to use.

Wouldn’t that then be for all Java apps ? What if you want to use Java8 for one service/app and Java7 for another?
Or can you set it the moment you launch the app (how?) ?

For reference in this thread:
http://www.wikihow.com/Set-Java-Home
http://docs.oracle.com/cd/E19182-01/820 … index.html

True, if you set JAVA_HOME it will be used for all, so the -vm argument is good if you don’t want that.

You can change it before you start an app, but you do that from the System Properties panel/Advanced tab/Environment Variables…

I do have a setup where I have various JDK/JRE and have created environment variables for all, like JDK7_32, JDK7_64, etc. each pointing to a different installation and I sometimes switch by setting JAVA_HOME to %JDK7_64% for example.

The initial problem is this

You had a 32bit java installed and installed servoy with that 32 bit java,
then when upgrading you installed a 64 bit java, but an servoy/eclipse installation is made for 32 or 64 bit, you can’t start a 32 bit installation with a 64 bit java (or the other way around)

You can see that in your picture because i see there an equinox.launcher which is win32_x86 (thats 32 bit) and not win32_x86_64 (which would be 64 bit)