[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: debugging java.lang.UnsatisfiedLinkError?
From: |
Robert Lougher |
Subject: |
Re: debugging java.lang.UnsatisfiedLinkError? |
Date: |
Sat, 6 Nov 2004 03:16:13 +0000 |
Hi Paul,
For the record, you need to setup the environment variable
LD_LIBRARY_PATH to the list of directories where to find native
libraries, or set the java.library.path property on the command line
(using -D).
However, you shouldn't have to set this or use -cp (you should use
-bootclasspath for system classes). By default JamVM looks in the
standard Classpath installation directory (/usr/local/classpath), but
it looks like you have it installed in a different place. You can
specify this when configuring JamVM by using
--with-classpath_install_dir, e.g:
./configure
--with-classpath_install_dir=/home/psj/software/install/classpath-cvs-20041105-psj
Hope this helps,
Rob.
On Fri, 05 Nov 2004 21:57:55 +0000, Paul Jenner <address@hidden> wrote:
> Hi all.
>
> Can someone help me with a quick newbie question? My apologies for
> posting to such a public list but I was not aware of a better place.
>
> I get the following java.lang.UnsatisfiedLinkError error (trying to run
> JCTerm with jamvm and Classpath CVS):
>
> address@hidden src]$ jamvm -cp
> /home/psj/software/install/classpath-cvs-20041105-psj/share/classpath/glibj.zip:.
> com.jcraft.jcterm.JCTerm
> java.lang.UnsatisfiedLinkError: initState
> at gnu.java.awt.peer.gtk.GdkGraphics2D.initState (Native Method)
> at gnu.java.awt.peer.gtk.GdkGraphics2D.<init>
> (GdkGraphics2D.java:190)
> at gnu.java.awt.peer.gtk.GdkGraphicsEnvironment.createGraphics
> (GdkGraphicsEnvironment.java:67)
> at java.awt.image.BufferedImage.createGraphics
> (BufferedImage.java:291)
> at java.awt.image.BufferedImage.getGraphics (BufferedImage.java:323)
> at com.jcraft.jcterm.JCTerm.<init> (JCTerm.java:95)
> at com.jcraft.jcterm.JCTerm.main (JCTerm.java:1219)
>
> What is the best way of debugging such UnsatisfiedLinkErrors? I have
> checked that the installed Classpath native libraries are in my linker
> path.
>
> Please reply off-line if this is best kept off the public list.
>
> Thanks for the help,
>
> Paul
>
> _______________________________________________
> Classpath mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/classpath
>