Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (671)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  jawt and jogl install  (Read 4272 times)
0 Members and 1 Guest are viewing this topic.
Offline sss

Senior Newbie

Java games rock!

« Posted 2003-07-22 19:29:51 »

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.

public class Simple {
     public static void main( String[] args )
           System.out.println( System.getProperty("java.library.path") );
           System.err.println("***** jogl loaded ******");
Offline AndersDahlberg

Junior Devvie

« Reply #1 - Posted 2003-07-22 19:53:02 »

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

First look at the following getting started information:;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.;action=display;num=1058674409
Offline sss

Senior Newbie

Java games rock!

« Reply #2 - Posted 2003-07-22 20:00:11 »

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.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline AndersDahlberg

Junior Devvie

« Reply #3 - Posted 2003-07-22 20:47:14 »

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 Smiley
Offline swpalmer

JGO Coder

Exp: 12 years

Where's the Kaboom?

« Reply #4 - Posted 2003-07-22 21:16:54 »

What happens when you do a


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.

Offline sss

Senior Newbie

Java games rock!

« Reply #5 - Posted 2003-07-22 21:45:50 »

Thanks for you  help  Smiley.

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

JGO Coder

Java games rock!

« Reply #6 - Posted 2003-07-23 05:28:48 »

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").
Offline Caoimhin

Junior Devvie

« Reply #7 - Posted 2003-07-24 19:00:38 »

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

Junior Newbie

Java games rock!

« Reply #8 - Posted 2003-07-30 13:49:00 »

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(
       at java.lang.ClassLoader.loadLibrary(
       at java.lang.Runtime.loadLibrary0(
       at java.lang.System.loadLibrary(
       at HelloWorld.main(
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

Ps. i'm using windows XP pro

Pps. Tried loadLibrary("jawt"), it gives the exact same error
Offline DrLabman

Junior Newbie

Opengl games rock!

« Reply #9 - Posted 2003-07-30 20:59:19 »

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

QMB Quake Engine -
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Eggert

Junior Newbie

Java games rock!

« Reply #10 - Posted 2003-08-03 10:57:35 »

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
Offline jujumen

Senior Newbie

java is the juju within.....

« Reply #11 - Posted 2003-08-03 15:19:35 »

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  Huh
i get this exception in main error!

From the land beyond beyond........
across all hope and fear........
i bid you JAVA do appear.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (43 views)
2016-04-18 14:18:53

KaiHH (42 views)
2016-04-18 08:35:41

KaiHH (73 views)
2016-04-15 12:43:58

theagentd (74 views)
2016-04-14 02:16:17

theagentd (88 views)
2016-04-14 02:15:43

IanParcs (102 views)
2016-04-12 03:51:16

IanParcs (45 views)
2016-04-12 03:50:03

IanParcs (42 views)
2016-04-12 03:49:54

IanParcs (37 views)
2016-04-12 03:49:52

IanParcs (47 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!