Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (623)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (676)
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  
  Adding JOGL into an Existing Netbeans Project  (Read 3185 times)
0 Members and 1 Guest are viewing this topic.
Offline AI Guy

Senior Newbie

« Posted 2007-11-05 18:28:11 »

I have an existing Project, created a long ago, and I want to add JOGL into it, so I do not have to throw away all my CVS history, or make two projects.  I added the JOGL library to the project properties.  The line new GLCanvas(); throws  java.lang.NoClassDefFoundError: com/sun/gluegen/runtime/DynamicLookupHelper

I then added the gluegen-rt library into the project to see what would happen, even though a brand new Simple JOGL project does not have it.  Now the error is java.lang.UnsatisfiedLinkError: no jogl in java.library.path.

I can run the Simple JOGL project that comes with the Netbeans OpenGL plugin. I can add the line new GLCanvas(); to main(), and everything works fine.  When looking at it's projects properties, it just shows JOGL, but there is an error down at the bottom of the dialog box, say "Some library items cannot be located".

Are there any directions to modifying an existing project to do this, or should I reverse engineer it, looking at simple JOGL's proect files?

Offline AI Guy

Senior Newbie

« Reply #1 - Posted 2007-11-05 19:15:14 »

More info:  The Run tab of the Simple JOGL Library shows the error.  it looks something like:
Broken reference: ${javac.classpath}${path.separator}${build.classes.dir}

Looking at the file for Simple OpenGL, found these unique lines:


Assuming everything was backed up first.  What I think I am going to try first is add all my references into a simple OpenGL project, then the minimal changes so it can can replace my old, and see if it works.

Wondering if Netbeans OpenGL projects need changing inorder to develop between native platforms?
Offline cylab

JGO Wizard

Medals: 90

« Reply #2 - Posted 2007-11-05 19:33:25 »

The missing dependency in the libraries node and the broken reference message are minor bugs of the prerelease in beta 1 and 2.

For the UnsatisfiedLinkError, you could try to simple update your with the natives.platform and from the SimpleJOGL project.

For development between platforms, you have to override this settings in your projects private folder.

Mathias - I Know What [you] Did Last Summer!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline AI Guy

Senior Newbie

« Reply #3 - Posted 2007-11-05 20:37:39 »

Tried it my way first even though there are more changes.  Many can be done with with the IDE,  the manual ones are dealing with things I understand.  It gets a lot farther, probably beyond this threads scope.  It produced a java.libray.path of:

Did die with a Java Result: 138.  MacOS then brought up a dialog to report it.  I am going to hold off on that.  I am probably commiting some atrocities, and just now able to get that far.
Offline cylab

JGO Wizard

Medals: 90

« Reply #4 - Posted 2007-11-05 20:45:08 »

So... the java result 138 is your fault or ours?  Roll Eyes

Mathias - I Know What [you] Did Last Summer!
Offline AI Guy

Senior Newbie

« Reply #5 - Posted 2007-11-05 21:22:59 »

you tell me.  For error isolation purposes I did the following to a fresh simple JOGL:

put the lines
            GLCanvas can = new GLCanvas();
            GLContext con = can.createContext(null);
            GL gl = con.getGL();


right at the front.  The isExtensionAvailable produced the abort.

I did the same thing on Win/XP & Netbeans 6.0 beta 1, with a Simple JOGL created on that machine.  This time I got just an illegal Argument exception.  Clearly I am doing something wrong,  but the MacOS response does seem a little harsh.
Offline cylab

JGO Wizard

Medals: 90

« Reply #6 - Posted 2007-11-05 21:58:46 »

Ah, OK. Not our fault  Tongue (we are only producing the NetBeans plugin)

You have to call GL functions at a time where the GL context is current. Best would be to use the GLEventListener mechanism and check extensions in the init() callback.

Alternatively you could call afaik makeCurrent() yourself.

Mathias - I Know What [you] Did Last Summer!
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

BurntPizza (13 views)
2015-10-07 02:11:23

KaiHH (13 views)
2015-10-06 20:22:20

KaiHH (11 views)
2015-10-06 19:41:59

BurntPizza (23 views)
2015-10-06 19:04:48

basil_ (44 views)
2015-09-30 17:04:40

shadowstryker (22 views)
2015-09-29 15:55:06

TheSpaceHedgehog (28 views)
2015-09-29 01:58:48

GamerC4 (54 views)
2015-09-24 21:10:38

GamerC4 (71 views)
2015-09-24 21:09:48

htuy (28 views)
2015-09-24 04:57:24
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 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!