developer crashes in Linux

I have Servoy (5.1) installed on a Linux computer (Ubuntu 10.4)
Developer starts.
opening a form in the form editor gives a problem when the form contains an element (e.g. a button)
also placing an element on a empty form gives a problem.

problem is: Developer crashes or hangs.

found some stuff on internet about eclipse and xulrunner but that didn’t sove the problem.

Anyone?

Regards
Sander

Sander,

Try running developer with java 1.5.

Rob

Thanx Rob,

didn’t work.

for now i will settle for a work around.
XP in a virtual box.

This works for me:

cd /path/to/servoy/developer
PATH=/path/to/jdk1.5.0/bin:$PATH ./servoy

Rob

I had the same problem (in Arch Linux latest).
just uninstalled xulrunner (and dependencies, firefox and gnome-doc) and everything works.

Never had this problem with CentOS, i’m reading about keeping an alternate xulrunner (1.8 works AFAIK) just for servoy and the default one for firefox (I browse with midori or epiphany, but I like to have firefox at hand just in case…)

Will post the results ASAP.

Rob, I think making a symlink from /path/to/jdk to /path/to/servoy/developer/jre will give you the same results, without modifying the PATH environment variable.

Martin

If debugging is the process of removing bugs, then programming must be the process of putting them in. -Dijkstra.

many thanks Rob and Martin.

i’ve got it working now with the symbolic link (setting path also worked)

regards

Sander

Hi at all,I have the same problem, both with servoy 5.1.4 and servoy 5.2.
I 'm using Ubuntu 10.04 LTS and java 1.6 update 21.(I don’t understand if is mandatory use 1.5.0 because Martin’s message doesn’t mention it)
I’m new in linux,but in some way I have tried your solution but without results:
I have installed symlinks and tried to link the folder /home/jre1.6.0_21 with /home/my-developer-path/jre (jre folder missing from servoy folder,I have created it for make this try) with this syntax:

symlinks  '/home/marco/jre1.6.0_21'  '/home/marco/servoy_5x/developer/jre'

Maybe I’m missing something?
Thanks in advance

Marco

Marco,

The basic idea is that when the servoy binary looks for the java binary it will find the one you want.
The PATH thing I showed does this.
The symbolic link does something similar, but only when you have ‘.’ in your path.

You can test which one is executed by typing ‘java --version’ in the developer directory.

Rob

ok! thanks Rob!

Never had any luck running against java 1.6 (except in Windows)

We found out some more about the crash on some Linux distro’s.
It seems that the GTKLookAndFeel does not work well with the SWT gui library.

In some distros however, this Look&Feel is configured by default in the swing.properties file in the /path/to/java/jre/lib directory.
If this file contains the swing.defaultlaf property set to com.sun.java.swing.plaf.gtk.GTKLookAndFeel, try commenting this line out (probably need root access for that).

Note that this may also affect the look&feel of other java swing apps on the same machine.

In Servoy 6.0.2 this change is not needed, Servoy Developer will handle this case.

NB: this issue is only a problem with Developer, client has no problem with this L&F.

Rob