Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
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 3247 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.

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

Junior Member





« 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: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

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 Member





« 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




Where's the Kaboom?


« Reply #4 - Posted 2003-07-22 21: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

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 Member





« 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(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

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 - http://qmb.quakepit.com
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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (20 views)
2014-08-16 06:12:11

Rayexar (59 views)
2014-08-11 02:49:23

BurntPizza (38 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!