jawt and jogl install

I’m trying to install jogl on a xp machine. I put the two .dll files in windows/system32 and my tiny program comples correctly. When I run it I get an error: jawt.dll not found as it fails on the loadLibrary line.

Any suggestions? It’s a clean install of the current java release.

import net.java.games.jogl.*;
public class Simple {
public static void main( String[] args )
{
System.out.println( System.getProperty(“java.library.path”) );
System.loadLibrary(“jogl”);
System.err.println("***** jogl loaded ******");
}
}

I think you are not really understanding how to use jogl, here are some information for you ;D:

First look at the following getting started information:http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1058027992

Then you can have a look at the demos (gears demo etc) and see the source code on howto use jogl - and try the texture/jogl tutorials by gregorypierce here on the forum.

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1058674409

No, I’m still at the install step. Evidently jogl.dll uses jawt.dll as a dependent library. When I run the tiny program, it fails on loadLibrary(“jogl”) with error message that it cannot finddependent library “jawt”.

I can’t figure out why it doesn’t find “jawt” It’s a clean install of java.

Hmm, sure - can you post the output of running the program?

you can alos try running the above program as

java -Djava.library.path=c:\path\tojogldlls\ Simple

and see if you get the same output :slight_smile:

What happens when you do a

System.loadLibrary(“jawt”);
?

It should work. If it doesn’t your JRE installation is hosed.

I’ve had problems when dynamically loading jawt from another dll… I solved it by doing the above loadLibrary call before the loadLibrary of my own DLL. It seemed that for the Win32 APIs the jawt.dll file was not in the path, but the JRE knew where to find it.

Thanks for you help :).

The problem apparently was caused by me putting the dll’s in the windows/system32 directory instead of jre/bin. It work fine now!

Note that you should not need to perform a System.loadLibrary(“jogl”) at all. This is taken care of by the internal initialization of the JOGL classes. Note also that JOGL loads jawt manually by calling System.loadLibrary(“jawt”) before calling System.loadLibrary(“jogl”).

Hmm, I simply took a guess and stuck the jar and dlls into jre/lib/ext. That also worked fine.

I recently installed JDK ver 1.4.2 (seems to be working with some sample programs I’ve tryied) and want to try my luck with JoGL but have run into some promblems.

I tryed calling loadLibrary(“jogl”), at first it errored not finding jogl. After I put jogl.dll and jogl_cg.dll into “C:\j2sdk1.4.2\jre\bin” it comes with this error:
Hello World!
Exception in thread “main” java.lang.UnsatisfiedLinkError: C:\j2sdk1.4.2\jre\bin
\jawt.dll: Can’t find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at HelloWorld.main(HelloWorld.java:48)
Press any key to continue…

I’m new to java and havn’t got a clue as to what this means.
Really appreciate it if anyone could/would help me some

best regards to programmers of the world
Eggert

Ps. i’m using windows XP pro

Pps. Tried loadLibrary(“jawt”), it gives the exact same error

make sure ‘C:\j2sdk1.4.2\jre\bin’ is in your path, i had a similar problem.

Thanks DrLabMan, that was exactly the problem.

I thought I had already put it in the path but I obviously hadn’t found the right place

i followed all the insructions here, when i compile the triangles tutorial i dont get any errors but when i run it nothing happens. im using jbuilder n a win xp hme ed ihave the jars and dll and the new jdk any help ???
i get this exception in main error!