Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (499)
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  
  Problem with gluOrtho2D (0.0, 500.0, 0.0, 300.0)  (Read 1109 times)
0 Members and 1 Guest are viewing this topic.
Offline zainuluk

Senior Newbie




Java games rock!


« Posted 2005-12-17 15:16:03 »

Hi, Huh
I am using eclipse to compile and run jogl demos. I have a very simple program to test that everything is working. However I get a bug which seems to be related to a single line in the code. This line is as follows:

1  
glu.gluOrtho2D (0.0, 500.0, 0.0, 300.0);


if I comment out the line above then the application runs fine but of course all I get a blank screen. However if I include this line then i get the following errors:

 Huh

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: dispatch_gluOrtho2D
   at net.java.games.jogl.impl.GLUImpl.dispatch_gluOrtho2D(Native Method)
   at net.java.games.jogl.impl.GLUImpl.gluOrtho2D(GLUImpl.java:381)
   at SecondGLEventListener.init(SecondGLEventListener.java:26)
   at net.java.games.jogl.impl.GLDrawableHelper.init(GLDrawableHelper.java:68)
   at net.java.games.jogl.GLCanvas$InitAction.run(GLCanvas.java:187)
   at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:144)
   at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
   at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
   at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:105)
   at java.awt.Component.setBounds(Unknown Source)
   at java.awt.BorderLayout.layoutContainer(Unknown Source)
   at java.awt.Container.layout(Unknown Source)
   at java.awt.Container.doLayout(Unknown Source)
   at java.awt.Container.validateTree(Unknown Source)
   at java.awt.Container.validateTree(Unknown Source)
   at java.awt.Container.validateTree(Unknown Source)
   at java.awt.Container.validateTree(Unknown Source)
   at java.awt.Container.validate(Unknown Source)
   at java.awt.Window.show(Unknown Source)
   at java.awt.Component.show(Unknown Source)
   at java.awt.Component.setVisible(Unknown Source)
   at SecondJoglApp$1.run(SecondJoglApp.java:18)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)



I have tried all the installation tutorials that are available on the internet but I still get this problem.
I have too question....
1. How do I fix this bug .  Huh
2. When will an installer be released which puts everything in the right place on its own.  Grin

thanks
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #1 - Posted 2005-12-17 19:18:33 »

I think you have mismatched versions of jogl.jar and jogl.dll. You should delete all copies of these files (and make sure you haven't dropped any JOGL-related files into the JRE/JDK, which causes problems with Java Web Start and other applications) and re-install. I'd also recommend you upgrade to the latest nightly build on the JOGL web page; there are API changes involved, but the new code is much more robust than older versions.
Offline zainuluk

Senior Newbie




Java games rock!


« Reply #2 - Posted 2005-12-17 20:41:16 »

I think you have mismatched versions of jogl.jar and jogl.dll. You should delete all copies of these files (and make sure you haven't dropped any JOGL-related files into the JRE/JDK, which causes problems with Java Web Start and other applications) and re-install. I'd also recommend you upgrade to the latest nightly build on the JOGL web page; there are API changes involved, but the new code is much more robust than older versions.


Hi I just downloaded the lastest build of the jogl.jar file. I opened it up to find no mension of the net file path.
My demo uses the following header files
1  
2  
import net.java.games.jogl.*;
import net.java.games.jogl.GLU;


but the classes in the jogl.jar file are as follows.

1  
2  
3  
4  
com---------sun----------glugen----runtime
                       +-----------opengl----cd
                                             +--------impl
                                             +--------utils

etc


where is the net.game.cd path
thanks
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #3 - Posted 2005-12-19 02:38:58 »

The namespace of the classes has changed from net.java.games.jogl to javax.media.opengl. Some of the public APIs have also changed. See the browsable Javadoc on the JOGL home page for the new APis. There isn't a document yet describing all of the differences between JOGL 1.1.1 and the current JSR-231 APIs although this thread describes some of the high-level changes.
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.

xsi3rr4x (28 views)
2014-04-15 18:08:23

BurntPizza (25 views)
2014-04-15 03:46:01

UprightPath (40 views)
2014-04-14 17:39:50

UprightPath (22 views)
2014-04-14 17:35:47

Porlus (38 views)
2014-04-14 15:48:38

tom_mai78101 (62 views)
2014-04-10 04:04:31

BurntPizza (121 views)
2014-04-08 23:06:04

tom_mai78101 (221 views)
2014-04-05 13:34:39

trollwarrior1 (188 views)
2014-04-04 12:06:45

CJLetsGame (195 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!