Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  jawt and jogl install  (Read 2268 times)
0 Members and 1 Guest are viewing this topic.
Offline sss

JGO n00b
*

Posts: 12


Java games rock!


« on: 2003-07-22 15: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.

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 ******");
     }
}
Offline AndersDahlberg

Full Member
**

Posts: 196



« Reply #1 on: 2003-07-22 15: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: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
Offline sss

JGO n00b
*

Posts: 12


Java games rock!


« Reply #2 on: 2003-07-22 16: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! Go get 'em!
Offline AndersDahlberg

Full Member
**

Posts: 196



« Reply #3 on: 2003-07-22 16: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 Kernel
*****

Posts: 3438
Medals: 4


Where's the Kaboom?


« Reply #4 on: 2003-07-22 17:16:54 »

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.

Offline sss

JGO n00b
*

Posts: 12


Java games rock!


« Reply #5 on: 2003-07-22 17: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 Kernel
*****

Posts: 3446
Medals: 3


Java games rock!


« Reply #6 on: 2003-07-23 01: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

Full Member
**

Posts: 136



« Reply #7 on: 2003-07-24 15:00:38 »

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

JGO n00b
*

Posts: 5


Java games rock!


« Reply #8 on: 2003-07-30 09: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(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
Offline DrLabman

JGO n00b
*

Posts: 4


Opengl games rock!


« Reply #9 on: 2003-07-30 16:59:19 »

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

QMB Quake Engine - http://qmb.quakepit.com
Games published by our own members! Go get 'em!
Offline Eggert

JGO n00b
*

Posts: 5


Java games rock!


« Reply #10 on: 2003-08-03 06: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

JGO n00b
*

Posts: 23


java is the juju within.....


« Reply #11 on: 2003-08-03 11: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]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.122 seconds with 21 queries.