Skip to main content

I have a problem that basis.DemoFrame is not executed in the linux.

1 reply [Last post]
choichanwoo
Offline
Joined: 2007-08-07

I want to execute basis.DemoFrame(is included to PBP) in the linux.

But I don't execute basis.DemoFrame with following exception.

java.lang.UnsatisfiedLinkError: /home/cwchoi00/phoneme-advanced-mr1/
build/linux-x86-generic/lib/libqtawt.so
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibraryInternal(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(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at java.awt.QtGraphicsEnvironment.(Unknown Source)
at java.awt.QtToolkit.(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at java.awt.Toolkit$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at java.security.AccessController.doPrivileged(Unknown Source)
at java.awt.Toolkit.getDefaultToolkit(Unknown Source)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Unknown Source)
at java.awt.Window.(Unknown Source)
at java.awt.Frame.(Unknown Source)
at java.awt.Frame.(Unknown Source)
at basis.DemoFrame.(Unknown Source)
at basis.DemoFrame.main(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.misc.CVM.runMain(Unknown Source)

I could not find solution abuout following exception.

Solution.1
"libqtawt.so" is copied to /lib.
I could command "ldconfig".

Solution.2
LD_LIBRARY_PATH=/home/cwchoi00/phoneme-advanced-mr1/build/linux-x86-
generic/lib/libqtawt.so:LD_LIBRARY_PATH

Please help me.

Good luck to you~*

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cjplummer
Offline
Joined: 2006-10-16

You need to add your QT directory to LD_LIBRARY_PATH, not libqtawt.so. See the following for more help:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedCVMNative...

Chris