Load Error after building Libjava with QT support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I am trying to build libjava with AWT backend as QT.

I have given the configure script as

/../gcc-4.4-20090922/configure --enable-threads=posix --prefix=/home/geotaguser/GCJ/gcc --enable-shared --enable-languages=c++,java --enable-java-awt=qt --enable-load-library --disable-plugin --enable-checking --enable-qt-peer --with-qt4dir=/usr/local/Trolltech/Qt-4.5.0 && make bootstrap && make && sudo make install/

the GCC build is successful , but when I try to execute my Java Application, I get the following exception:


/Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit: gnu.java.awt.peer.qt.QtToolkit
 2    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:607)
3 at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:103)
 4    at java.awt.Window.<init>(Window.java:133)
 5    at java.awt.Frame.<init>(Frame.java:246)
 6    at MainApplication.<init>(MainApplication.java:16)
 7    at MainApplication.main(MainApplication.java:35)
8 Caused by: java.lang.UnsatisfiedLinkError: libqtpeer: libqtpeer.so: cannot open shared object file: No such file or directory
 9    at java.lang.Runtime._load(natRuntime.cc:188)
10    at java.lang.Runtime.loadLibrary(Runtime.java:655)
11    at java.lang.System.loadLibrary(System.java:608)
12    at gnu.java.awt.peer.qt.QtToolkit.initToolkit(QtToolkit.java:122)
13    at gnu.java.awt.peer.qt.QtToolkit.<init>(QtToolkit.java:163)
14    at java.lang.Class.newInstance(natClass.cc:664)
15    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:584)
16    ...5 more/

Can anyone please suggest as to what is the reason of this error. why isnt the *libqtpeer.so* not getting created?

thanks in advance,
Jil




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux