Problems installing servoy on ubuntu edgy

Hello all,

Just downloaded servoy trial and run into problems trying to install the jar file. I think it’s some kind of dependancy problem.
I am not a real linux-guru, so can anyone please tell me how to resolve this?
Java is up to date on this machine and is working properly.

TIA,
Harry

The message is:
Exception in thread “main” java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.gtk.GtkToolkit
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
at java.awt.Font.tk(libgcj.so.70)
at java.awt.Font.getPeerFromToolkit(libgcj.so.70)
at java.awt.Font.(libgcj.so.70)
at javax.swing.plaf.FontUIResource.(libgcj.so.70)
at javax.swing.plaf.metal.DefaultMetalTheme.(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(libgcj.so.70)
at javax.swing.plaf.metal.MetalLookAndFeel.(libgcj.so.70)
at javax.swing.UIManager.(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at com.izforge.izpack.installer.GUIInstaller.loadLookAndFeel(GUIInstaller.java:307)
at com.izforge.izpack.installer.GUIInstaller.(GUIInstaller.java:116)
at java.lang.Class.newInstance(libgcj.so.70)
at com.izforge.izpack.installer.Installer.main(Installer.java:62)
Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory
at java.lang.Runtime._load(libgcj.so.70)
at java.lang.Runtime.loadLibrary(libgcj.so.70)
at java.lang.System.loadLibrary(libgcj.so.70)
at gnu.java.awt.peer.gtk.GtkToolkit.(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
at java.lang.Class.forName(libgcj.so.70)
at java.awt.Toolkit.getDefaultToolkit(libgcj.so.70)
…15 more

What java are you running (java -version)?
I think you needs sun java.

Rob

Judging by this line:

Caused by: java.lang.UnsatisfiedLinkError: libgtkpeer: libgtkpeer.so: cannot open shared object file: No such file or directory

I’d say you don’t have either kaffe, kaffe-pthreads or libgtk2 installed. I’m running Kubuntu 6.06, and I have the file here:
/usr/lib/kaffe/pthreads/jre/lib/i386/libgtkpeer.so

Please try this:

sudo apt-get install kaffe kaffe-pthreads libgtk2.0-0

@Rob,

I am running the latest sun java, just tested it on their site.

@Sandor:
Tried your apt-get command and that succeeded.
Now when i try to install it give another bunch of messages (InvocationTargetException) and stops there.
The install command does not complete, it just waits for something
I think it is trying to show a license agreement?

java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke0 (Method.java)
at java.lang.reflect.Method.invoke (Method.java:255)
at java.lang.reflect.Constructor.newInstance (Constructor.java:90)
at com.izforge.izpack.installer.InstallerFrame.loadPanels (InstallerFrame.java:336)
at com.izforge.izpack.installer.InstallerFrame. (InstallerFrame.java:256)
at com.izforge.izpack.installer.GUIInstaller.loadGUI (GUIInstaller.java:433)
at com.izforge.izpack.installer.GUIInstaller.access$100 (GUIInstaller.java:79)
at com.izforge.izpack.installer.GUIInstaller$2.run (GUIInstaller.java:148)
at java.awt.event.InvocationEvent.dispatch (InvocationEvent.java:200)
at java.awt.EventQueue.dispatchEvent (EventQueue.java:465)
at java.awt.EventDispatchThread.run (EventDispatchThread.java:75)
at java.lang.VMThread.run (VMThread.java:123)
Caused by: java.lang.IllegalArgumentException: position: 1, beginIndex: 2, endIndex: 30
at javax.swing.text.Segment.setIndex (Segment.java:246)
at gnu.java.text.BaseBreakIterator.following (BaseBreakIterator.java:78)
at java.text.BreakIterator.preceding (BreakIterator.java:341)
at javax.swing.text.Utilities.getBreakLocation (Utilities.java:525)
at javax.swing.text.WrappedPlainView.calculateBreakPosition (WrappedPlainView.java:288)
at javax.swing.text.WrappedPlainView$WrappedLine.determineNumLines (WrappedPlainView.java:472)
at javax.swing.text.WrappedPlainView$WrappedLine. (WrappedPlainView.java:414)
at javax.swing.text.WrappedPlainView.loadChildren (WrappedPlainView.java:258)
at javax.swing.text.CompositeView.setParent (CompositeView.java:122)
at javax.swing.plaf.basic.BasicTextUI$RootView.setView (BasicTextUI.java:182)
at javax.swing.plaf.basic.BasicTextUI.setView (BasicTextUI.java:1259)
at javax.swing.plaf.basic.BasicTextUI.modelChanged (BasicTextUI.java:1283)
at javax.swing.plaf.basic.BasicTextAreaUI.propertyChange (BasicTextAreaUI.java:111)
at javax.swing.plaf.basic.BasicTextUI$PropertyChangeHandler.propertyChange (BasicTextUI.java:420)
at java.beans.PropertyChangeSupport.firePropertyChange (PropertyChangeSupport.java:388)
at java.beans.PropertyChangeSupport.firePropertyChange (PropertyChangeSupport.java:366)
at java.awt.Component.firePropertyChange (Component.java:4476)
at javax.swing.JComponent.firePropertyChange (JComponent.java:814)
at javax.swing.JTextArea.setWrapStyleWord (JTextArea.java:440)
at com.izforge.izpack.panels.LicencePanel. (LicencePanel.java:79)
at java.lang.reflect.Method.invoke0 (Method.java)
…11 more

On my Ubuntu install it runs perfect. What output do you get if you type

java -version

Hi Jan,

This is what i get:

java full version “kaffe-1.4.2”

kaffe VM “1.1.7”

Copyright (c) 1996-2005 Kaffe.org project contributors (please see
the source code for a full list of contributors). All rights reserved.
Portions Copyright (c) 1996-2002 Transvirtual Technologies, Inc.

The Kaffe virtual machine is free software, licensed under the terms of
the GNU General Public License. Kaffe.org is a an independent, free software
community project, not directly affiliated with Transvirtual Technologies,
Inc. Kaffe is a Trademark of Transvirtual Technologies, Inc. Kaffe comes
with ABSOLUTELY NO WARRANTY.

Engine: Just-in-time v3 Version: 1.1.7 Java Version: 1.4
Heap defaults: minimum size: 5 MB, maximum size: unlimited
Stack default size: 256 KB

Is this okay?

Grtz
Harry

That’s not a proper Java no. Go to java.sun.com and install a real Sun Java. Use that Java to run Servoy and everything will be brilliant. Kaffe is just like the name already suggests a very bad tasting Java!

From the SUN java site :

JAVA SOFTWARE for Your Computer

We detected your Java environment as follows;
Description Your Environment
Java Runtime Vendor:

Sun Microsystems Inc.
Java Runtime Version

1.5.0_11

CONGRATULATIONS, you have the Latest version of Java!

What do i have to do to get the “proper” java?

TIA
Harry

This most probably means that you have both sun’s java and Kaffe installed. It looks like you have a path to Kaffe that is causing Kaffe to launch instead of Sun’s jre. Correct your path settings and you will be fine.

Hello Jan,.

Thanks for your help.

I didn’t have kaffe installed until i run the command Sandor gave me.
Before kaffe i got other errors, that was the start of this thread.
And i’m not a real linux guru,
How can i change the path?
re-install sun-java?

TIA
Harry

My advice is always to run the OS you are comfortable with. I don’t think it is a good idea to use Ubuntu if it’s not your cup of coffee. Setting path’s is different in each config/version of Linux and also depends on what shell you run, how you login, which user you are etc.

Globally: first you would locate where your java is installed and if your shell is bash you would then edit .bash_profile in your home dir and add the path to the java executable to your PATH environment setting.

Alternatively you can consider to run it straight from the command line:

cd /to/your/servoydir

then:

/path/to/java -jar servoy_developer.jar

Yesssss!!!

That did it.It installed succesfully.
I will give it a try.

Thank you

btw:
I really like ubuntu till now. Just still learning :)

Grtz
harry