I am using ubuntu 16.04 and servoy 7.4.10
No matter which java version I use, when I try to open a form, the developer crashes.
Till now I have tried using java 7 (which servoy 7.4.10 is incompatible with), java 8, java 10
And the hilarious thing is on servoy wiki page, it says to go back to java 5.
Please give some idea to fix this.
Hi,
Just to see if I could reproduce this I did a clean install of Ubuntu 16.04 (in a VM).
Then I installed openjdk 8 via the terminal:
sudo apt install openjdk-8-jdk
And then ran the Servoy 7.4.10 installer:
java -jar servoy_installer.jar
After all this I launched Servoy Developer by double-clicking on the the icon and it runs fine for me.
[attachment=0]Screen Shot 2018-05-11 at 00.02.19.png[/attachment]
Did you perhaps installed the headless version of Java?
I see you mentioned it crashed when opening a form (which I didn’t do yet).
And yes, after creating a form and dropping some elements on it Servoy Developer crashes. I gave it a little more memory (740MB) and it takes a little longer then but still crashes.
[attachment=0]Screen Shot 2018-05-11 at 00.23.01.png[/attachment]
After giving it 1GB of RAM it allowed me to add a lot of elements on the form.
So it looks like Developer is a bit more RAM hungry on Ubuntu.
You can assign more RAM to Servoy by editing the servoy.ini file and change the following parameter:
-Xmx512m
I set mine to -Xmx1024m to give it 1GB of RAM.
Hope this helps.
what if you add this
selectedlnf=javax.swing.plaf.metal.MetalLookAndFeel
in your servoy.properties file? (make sure you add this when the developer is closed, because the properties file is rewritten when the developer is closing)
Thanks both of you.
ok, so I tried both methods one after the other
1st memory increase, but even after increasing to 4g, the problem didn’t go away.
Than I tried Gabi Boros’s suggestion of
selectedlnf=javax.swing.plaf.metal.MetalLookAndFeel
This seems to have done the trick.
![Smile :)]()
So what is your memory setting now with this LnF change?
In the Servoy wiki there are some notes on installing Servoy 7 on linux:
https://wiki.servoy.com/display/Serv7/S … quirements
It also lists the selectedlnf setting.
Rob
ROCLASI:
So what is your memory setting now with this LnF change?
After fixing the main issue, I reduced the memory to 512mb, just to make sure. And it works fine.