developer crashes in Linux

Questions and answers regarding the use of eclipse environment as seen in Servoy Developer

developer crashes in Linux

Postby sander » Wed Jun 09, 2010 9:24 am

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
 
Posts: 12
Joined: Tue Jun 10, 2008 3:28 pm
Location: Amsterdam

Re: developer crashes in Linux

Postby rgansevles » Wed Jun 09, 2010 9:39 am

Sander,

Try running developer with java 1.5.

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: developer crashes in Linux

Postby sander » Mon Jun 14, 2010 9:22 am

Thanx Rob,

didn't work.

for now i will settle for a work around.
XP in a virtual box.
------------------------------------------------------
Sander Smit
2Serve-it
www.thesolutionsweb.nl
sander
 
Posts: 12
Joined: Tue Jun 10, 2008 3:28 pm
Location: Amsterdam

Re: developer crashes in Linux

Postby rgansevles » Mon Jun 14, 2010 9:52 am

This works for me:
Code: Select all
cd /path/to/servoy/developer
PATH=/path/to/jdk1.5.0/bin:$PATH ./servoy

Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: developer crashes in Linux

Postby mmgomez » Tue Jun 15, 2010 10:09 pm

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.
If debugging is the process of removing bugs, then programming must be the process of putting them in. -Dijkstra.
mmgomez
 
Posts: 7
Joined: Wed Sep 30, 2009 10:43 pm

Re: developer crashes in Linux

Postby sander » Wed Jun 16, 2010 2:37 pm

many thanks Rob and Martin.

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

regards

Sander
------------------------------------------------------
Sander Smit
2Serve-it
www.thesolutionsweb.nl
sander
 
Posts: 12
Joined: Tue Jun 10, 2008 3:28 pm
Location: Amsterdam

Re: developer crashes in Linux

Postby Marco R. » Wed Jul 28, 2010 12:20 pm

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:
Code: Select all
symlinks  '/home/marco/jre1.6.0_21'  '/home/marco/servoy_5x/developer/jre'


Maybe I'm missing something?
Thanks in advance


Marco
Marco Rossi
Freelance

Main development environment: Servoy 6.1.6 - 7.4.3, Java 1.6u45,7u71 Windows 7/CentOS
Marco R.
 
Posts: 203
Joined: Thu Mar 19, 2009 12:37 pm

Re: developer crashes in Linux

Postby rgansevles » Tue Aug 10, 2010 8:59 am

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
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL

Re: developer crashes in Linux

Postby Marco R. » Wed Sep 15, 2010 1:12 pm

ok! thanks Rob!
Marco Rossi
Freelance

Main development environment: Servoy 6.1.6 - 7.4.3, Java 1.6u45,7u71 Windows 7/CentOS
Marco R.
 
Posts: 203
Joined: Thu Mar 19, 2009 12:37 pm

Re: developer crashes in Linux

Postby mmgomez » Fri Sep 17, 2010 6:26 pm

Never had any luck running against java 1.6 (except in Windows)
If debugging is the process of removing bugs, then programming must be the process of putting them in. -Dijkstra.
mmgomez
 
Posts: 7
Joined: Wed Sep 30, 2009 10:43 pm

Re: developer crashes in Linux

Postby rgansevles » Mon Sep 26, 2011 11:41 am

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
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL


Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 5 guests