installing Servoy in Red Hat Linux Fedora

Hi,

I am trying to install servoy-developer on a linux machine: Red Hat Linux Fedora

but I am getting this error:

[root@localhost servoy]# java servoy_installer.jar
Exception in thread "main" java.lang.NoClassDefFoundError: servoy_installer/jar
[root@localhost servoy]# java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)
[root@localhost servoy]# java -jar servoyinstaller.jar
Unable to access jarfile servoyinstaller.jar
[root@localhost servoy]# java -jar servoy_installer.jar
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_08/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1503)
        at java.lang.Runtime.loadLibrary0(Runtime.java:788)
        at java.lang.System.loadLibrary(System.java:834)
        at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.awt.Toolkit.loadLibraries(Toolkit.java:1437)
        at java.awt.Toolkit.<clinit>(Toolkit.java:1458)
        at java.awt.Color.<clinit>(Color.java:250)
        at com.izforge.izpack.installer.InstallData.<init>(InstallData.java:45)
        at com.izforge.izpack.installer.GUIInstaller.<init>(GUIInstaller.java:89)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
        at java.lang.Class.newInstance0(Class.java:308)
        at java.lang.Class.newInstance(Class.java:261)
        at com.izforge.izpack.installer.Installer.main(Installer.java:47)

For some reason I miss some software lib’s. Is there a list which librarys must be installed for Servoy? Java is’nt enough, because java is working fine!

I did a default installation of Fedora.

Ah yes, I have had that too on a Debian install.
This one was headless (no GUI) so I copied the files over and got that error when trying to run Servoy Server.

In short, you need some X-Window core libraries (!?).
libawt.so requires at least the following libs:

  • libXt.so.6
  • libXtst.so.6
  • libX11.so.6

Not sure why a faceless server process would need AWT.
I already reported this to Servoy support.

Hope this helps.

Where can I find those libs?

If you want to install on a server without a head make sure you first create the installer xml file as decribed in the manual (in short: install on a box with a head let it create the installer xml at the end of install, edit that file to correct the installation dir then install using that file: java -jar servoy_installer.jar install.xml)

HJK:
Where can I find those libs?

install X
How to install X? That depends on your distribution, build, version, etc, etc
Welcome to the wonderful world of Linux.

Jan, I know that it’s distribution independant,

but what I really like to know up front, which libs must be installed or are needed, to run Servoy developer, rather than to find out afterwards.

So is there a list of it somewhere?

HJK:
Jan, I know that it’s distribution independant,

but what I really like to know up front, which libs must be installed or are needed, to run Servoy developer, rather than to find out afterwards.

So is there a list of it somewhere?

That was exactly what i said: install X

NOTE X is not a variable in the above but the X Window system often also known as XFree etc.

On a related note: If you don’t know what x is and how to install it should you really be running Linux? Get a Mac if you want Unix to be easy! Linux is like a racing car: you shouldn’t be allowed to operate it without a license.

I am just racing on a mini-bike! :)
I have not any plans to go live with Linux. I am just curious and learning every day! 8)