Re: [Java-gnome-developer] Strange problem...
Brought to you by:
afcowie
|
From: Marshall C. <mar...@ar...> - 2002-05-11 20:14:39
|
Try java -cp /usr/local/share/java-gnome/:. First
On Sat, 2002-05-11 at 14:30, [A]ndy80 - Andrea Grandi wrote:
> I've installed java-gnome 0.7.1 and I've tried this simple piece of
> code:
>=20
> // First we import the libraries used by this example=20
> import gnu.gtk.*;=20
> import gnu.gnome.*;=20
> public class First=20
> {=20
> public static void main(String[] args)=20
> {=20
> // Initialization=20
> Gnome.init("First", "0.1", args.length, args);=20
> GnomeApp app =3D new GnomeApp("First", "First App");=20
> app.setPolicy(false, true, false);=20
> app.setWmclass("First", "FirstApp");=20
> app.show();=20
> Gtk.main();=20
> }=20
> }
>=20
> After: javac First.java (I get NO errors)
> I do: java First
> and I get:
>=20
> [shady@piccoli java]$ java First
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no GTKJava in
> java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
> at java.lang.Runtime.loadLibrary0(Runtime.java:772)
> at java.lang.System.loadLibrary(System.java:832)
> at gnu.gnome.Gnome.<clinit>(Gnome.java:35)
> at First.main(First.java:9)
>=20
> then I try:
>=20
> [shady@piccoli java]$ java -cp /usr/local/share/java-gnome/ First
> Exception in thread "main" java.lang.NoClassDefFoundError: First
>=20
> what could be the reason?
>=20
> Some usefull info for you:
>=20
> [shady@piccoli java]$ which java
> /usr/java/j2sdk1.4.0/bin/java
>=20
> [shady@piccoli java]$ java -version
> java version "1.4.0"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
> Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
>=20
> SUN JDK 1.4.0 for Linux
>=20
> [shady@piccoli java]$ echo $PATH
> /bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/games:/opt/gnome/bin:/usr/=
X11R6/bin:/usr/java/j2sdk1.4.0/bin/:/home/shady/bin:/usr/java/j2sdk1.4.0/bi=
n/:/home/shady/bin
>=20
>=20
> --=20
> ~ Piccoli Software
> =B0 =B0 http://www.piccolisoftware.cjb.net
> /V\ pic...@pe...
> // \\
> /( )\ [A]ndy80 on #bluvertigo e #pistoia
> ^`~'^ an...@pt... - http://www.ptlug.org
>=20
> GPG Key: http://www.ptlug.org/andy80_key.asc
>=20
>=20
> _______________________________________________________________
>=20
> Have big pipes? SourceForge.net is looking for download mirrors. We suppl=
y
> the hardware. You get the recognition. Email Us: ban...@so...=
t
> _______________________________________________
> java-gnome-developer mailing list
> jav...@li...
> https://lists.sourceforge.net/lists/listinfo/java-gnome-developer
>=20
|