SWING UI not supported by VM ? changing to AWT ?

If it doesn't fit in another category, ask it here.
Post Reply
Posts: 2
Joined: 2007/05/07 07:42:47

SWING UI not supported by VM ? changing to AWT ?

Post by asmama » 2007/05/07 07:49:06

dear sir / mdm, i am new to centos and linux. there is one problem when i try to install a bin file. here is the extraction

[root@S12414-WS-01 em_mgr]# ls
[root@S12414-WS-01 em_mgr]# chmod +x Console6_0_12.bin
[root@S12414-WS-01 em_mgr]# ./Console6_0_12.bin
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

'SWING' UI not supported by VM. Reverting to AWT.
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.UnsatisfiedLinkError: /tmp/install.dir.13434/Linux/resource/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(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.(Unknown Source)
at java.awt.Component.(Unknown Source)
at com.zerog.ia.installer.LifeCycleManager.g(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.h(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.a(DashoA8113)
at com.zerog.ia.installer.Main.main(DashoA8113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
This Application has Unexpectedly Quit: Invocation of this Java Application hascaused an InvocationTargetException. This application will now exit. (LAX)

has anyone know what is SWING 'UI' ? how can I rectify this problem ?
thank you very much for your help.

Posts: 17
Joined: 2007/04/01 08:32:12

SWING UI not supported by VM ? changing to AWT ?

Post by JohnC » 2007/05/07 09:17:24

Swing and AWT are graphical user interfaces used by java. AWT is older. Swing was introduced in java 1.2 in Sun's versions of java.
CentOS uses gcj which is an open source version of java. gcj uses AWT and not swing. Therefore when your install can't find swing it reverts to trying AWT.

It seems to be failing because libXp.so.6 doesn't exist. On CentOS 4 this is provided by package xorg-x11-deprecated-libs.i386.
You could try 'yum install xorg-x11-deprecated-libs' and then try installing again.

If that doesn't work you could try using Sun's version of java which includes the swing UI. You can download this from java.sun.com. I've used version 1.5 which worked ok.

Hope that helps.

Posts: 2
Joined: 2007/05/07 07:42:47

Re: SWING UI not supported by VM ? changing to AWT ?

Post by asmama » 2007/05/08 02:00:34

Dear Mr. / Mrs. JohnC,

I've followed your advice. I've checked and found that the JRE installed is JRE1_5_09.
therefore i executed 'yum install xorg-x11-deprecated-libs' with exception that
I typed 'yum install xorg-x11-deprecated-libs.i386' to match the machine.

Thank you for you help. The application can be installed sucesfully now. :-D

Post Reply

Return to “CentOS 4 - Miscellaneous Questions”