JOGL and JBuilder

I am trying for a while to get JOGL to work with JBuilder 9. But it doesnt work. Can anyone explain me what i should do exactly? An example JBuilder project would also be very helpfull.

tnx in advance

assuming JBuilder 9 for windows :

  • Put the 2 jogl dlls on the jbuilder/bin folder (not the jdk folder) which is on the library path.

  • create a “jogl” library and stuff jogl.jar inside (classes) and also the sources and javadoc if you want (but the jar is enough to run the demos).

  • add this library to your project, and that’s it.

Lilian

Where can i find the files i need?

if you search the jogl files they are here :

https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=2869&expandFolder=2869&folderID=2771

If you search something else, well, there’s nothing else…

Look also the general Wiki which is full of information for beginners : http://wiki.java.net/bin/view/Games

Lilian

I downloaded all the files i thought i should need. But there are no .dll files in those files.
And how do i create jogl library, and add this to my project?

tnx for your time

Hi,

Dlls files are jared in the nativeWin32 smthg jar, it’s not obvious at first but they are here :stuck_out_tongue:

I put the dll files in the correct directory.
Then in the project properties i chose required libraries and selected the jogl.jar.
I also added the net directory to the src directory in my project map.
But if i compile or rebuild i get alot of errors.

Giving the kind of errors should help, no ???

Well there are a lot of errors, 568. I copied a few:
“MyFirst.java”: Package D:\Universiteit\Applicatiebouw\Zelf\Dag_2\src\dag_2\MyFirst.java stated in source unnamed package does not match directory D:\Universiteit\Applicatiebouw\Zelf\Dag_2\src\dag_2\MyFirst.java.
“CMethodBindingEmitter.java”: as of release 1.4, assert is a keyword, and may not be used as an identifier at line 126, column 5
“CMethodBindingEmitter.java”: as of release 1.4, assert is a keyword, and may not be used as an identifier at line 127, column 5
“CMethodBindingEmitter.java”: as of release 1.4, assert is a keyword, and may not be used as an identifier at line 128, column 5
“CMethodBindingEmitter.java”: as of release 1.4, assert is a keyword, and may not be used as an identifier at line 330, column 9
“CMethodBindingEmitter.java”: as of release 1.4, assert is a keyword, and may not be used as an identifier at line 848, column 9

“GlueGen.java”: ‘;’ expected at line 277, column 19
“CompoundType.java”: ‘;’ expected at line 64, column 17
“Type.java”: cannot resolve symbol: class CompoundType in class net.java.games.gluegen.cgram.types.Type at line 111, column 10
“JavaEmitter.java”: cannot resolve symbol: class CompoundType in class net.java.games.gluegen.JavaEmitter at line 438, column 28
“JavaEmitter.java”: cannot resolve symbol: class CompoundType in class net.java.games.gluegen.JavaEmitter at line 451, column 26
“GlueEmitter.java”: cannot resolve symbol: class CompoundType in interface net.java.games.gluegen.GlueEmitter at line 89, column 28
“GlueEmitter.java”: cannot resolve symbol: class CompoundType in interface net.java.games.gluegen.GlueEmitter at line 101, column 26
“StructLayout.java”: cannot resolve symbol: class CompoundType in class net.java.games.gluegen.StructLayout at line 54, column 22
“JavaEmitter.java”: cannot resolve symbol: method assert (boolean)in class net.java.games.gluegen.JavaEmitter at line 332, column 11
“StructLayout.java”: cannot resolve symbol: class CompoundType in class net.java.games.gluegen.StructLayout at line 85, column 9
“CMethodBindingEmitter.java”: cannot resolve symbol: method assert (boolean)in class net.java.games.gluegen.CMethodBindingEmitter at line 127, column 5
“StaticGLGenTask.java”: package org.apache.tools.ant does not exist at line 46, column 29
“StaticGLGenTask.java”: cannot resolve symbol: class FileSet in class net.java.games.gluegen.ant.StaticGLGenTask at line 98, column 13
“StaticGLGenTask.java”: cannot resolve symbol: class CommandlineJava in class net.java.games.gluegen.ant.StaticGLGenTask at line 107, column 32
“StaticGLGenTask.java”: cannot resolve symbol: class Execute in class net.java.games.gluegen.ant.StaticGLGenTask at line 286, column 9
“GlueGenTask.java”: package org.apache.tools.ant.types does not exist at line 56, column 35
“GlueGenTask.java”: package PatternSet does not exist at line 254, column 23
“TNodeFactory.java”: package antlr does not exist at line 3, column 14
“TNodeFactory.java”: cannot resolve symbol: class AST in class net.java.games.gluegen.cgram.TNodeFactory at line 26, column 17
“GLContextShareSet.java”: ‘;’ expected at line 84, column 18
“GLContextShareSet.java”: ‘;’ expected at line 87, column 18
“GLContext.java”: cannot resolve symbol: method assert (boolean)in class net.java.games.jogl.impl.GLContext at line 344, column 9

That are only a few of the errors i get. I sure hope you can help me.
tnx

Looks like you are trying to compile jogl source files…
Is it what you intend to do?

no

Don’t add the net-directory to your Project-Map. Only add sources you want to compile. If you have specified the jogl.jar in your projects classpath (adding it as library), everything should work fine.

So you should remove the jogl source files from your project I think… or you’ll need to compile them properly, with the glue generation and other stuff.