I'm quite afraid, not for security but for update issues, to install a plug-in with a specific version of jogl.But it's sure that this kind of plug-in could really improve the easiness of starting a new project with jogl.

I plan to keep the plugin up to date with the current JOGL releases. The JOGL jars/natives are not part of the project template. They are copied from the module installation location to your apps distibution binaries during the build process. So JOGL projects based on this template will get updated automatically whith each plugin update.

Maybe there should be an option to disable this behaviour and create a project tree that contain all libraries and natives, so that developer can keep and update specific JOGL versions, if they want/need to.

This isn't really related but I asked the JSR 198 expert group about loading native libraries and managing native dependencies with JSR 198, the Java IDE standard because I someday may want to use JOGL in a plugin. Here is the response I got:

Quote

As I said in my previous reply to your questionthe JSR does not provide a standard way toto define dependencies to native libraries.

What the JSR provides is an API clients can call toget their extension path: ExtensionRegistry.getInstallRoot().This API can be used to get at the directory whereyour native library resides as follows:

The project template described above is to develop a standalone java application and not to develop a netbeans plugin. It's only that the template can be deployed using the netbeans module mechanism.

I have however written a library module for use in netbeans plugins as well. It was quite easy, since there is a special purpose folder in a module that gets added to the java.library.path automatically. I will upload this to my update-center soon.

Nevertheless your quote is an insightful contribution, since I was not aware of the JSR 198.

hi there..thanks so much for the info!! I did what you suggested, and downloaded netbeans and set an auto config to your URL...yay! so, now, can you please tell me more about properly using it.. is there JOGL documentation available?

JOGL is more or less the same than C/C++ OpenGL, so there is no special documentation available. See http://nehe.gamedev.net/ for general OpenGL tutorials. Most of them contain a JOGL or GL4Java (some kind of JOGL predecessor) port. There are some more recent ports of the lessons at http://pepijn.fab4.be/nehe/ like Ken already pointed out at the other Thread.

I would however suggest to follow the instructions and try to recode the interesting lessons there by yourself to get a feeling for JOGL.At first just try to copy and paste your C++ code and add a "gl." before each OpenGL-Call. The IDE will shriek if somethings not right ;-)

To Install the plugin - Follow the instructions in the first post to register a new update center - Go to "Tools"->"Update Center" - Make sure the checkbox of the newly created update center is selected - Select "OpenGL / JOGL OpenGL project" and optionally "OpenGL / JOLG OpenGL demo project" and click [ Add > ] - Click [ Next > ] and accept the licence agreements - Click [ Next > ] once the download is finished - Include the downloaded modules in the install by checking the checkboxes at the left - Click [ Yes ] at the "Untrusted Modules" warning (I haven't signed the modules yet...) - Click [ Finish ] and allow the IDE to restart

After the restart you can create a new JOGL-Project doing the following: - Choose "File"->"New Project" - Select Category "OpenGL" and Project: "Simple JOGL Appplication" - Click [ Next > ], change the desired fields in the next form and click [ Finish ]

Now your Project is set and you can click the "Play"-Button in the Toolbar and see what happens.

After the first run examine the generated .java file under the "Source Packages" folder, change something and hit "Play" again.

You can generate distributions of your application for all JOGL supported platforms by clicking the "Build Main Project" button(the blue one with the wrench symbol). You can examine the results by changing to the "Files" view.

After rereading your post, I am afraid, recreating the project will not help. Could you please zip a newly created project and send it to cylab<at>highteq<dot>net (<at> and <dot> replaced respectively)

Add a new "General Update Center" via right click context menu, name it and change the Server URL on the new entry to http://cylab.codewut.de/nbms/50.xml.After that you can install the modules via Tools->Update Center.

Please have a look and report success or problems on other platforms than windows => Thanks!

=============================================================

NOTE: Projects created with the previous version do not work after this update.I recommend creating a new project and copying the contents of your "src" folder to it.

Alternatively you can fix your project by...- ...changing the jogl.natives entry around line 40 in nbproject/project.properties to a full qualified native name. Available natives:

Sorry all, I had no time to work on this earlier. The modules are online again and hosted on a new server, so I hope there will be less downtimes in future. Right now the modules are several month old and still use the latest jsr beta version. I'll try to update them as soon as possible. Updates will be available vie the update center and announced here. Projects based on this version should be compatible to the upcoming update.

Cylab: Perhaps you should update the first post as well? I got into this forum looking for a quick way to get JOGL to work, so I used your old update-site from the first post and ran into problems with the glugen.rt path not being specified etc. I'm gonna try with the new update site now. Natrually not everyone is as ignorant as me and reads on instead, but some dummies are bound to start bugging you because it's not working.

If it works I'm very grateful since I was looking for a quick way to get it to work and get my hands dirty. A lot of tutorials I found used the net.java.gaming package. Hard for a newbie to understand what was wrong (I installed the latest rc).

Edit: My bad, they were the same. When I try to build your test project I get this error (stack trace):

Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at com.sun.gluegen.runtime.NativeLibLoader$1.run(NativeLibLoader.java:68) at java.security.AccessController.doPrivileged(Native Method) at com.sun.gluegen.runtime.NativeLibLoader.loadGlueGenRT(NativeLibLoader.java:66) at com.sun.gluegen.runtime.NativeLibrary.ensureNativeLibLoaded(NativeLibrary.java:399) at com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:163) at com.sun.gluegen.runtime.NativeLibrary.open(NativeLibrary.java:129) at com.sun.opengl.impl.x11.DRIHack.begin(DRIHack.java:109) at com.sun.opengl.impl.x11.X11GLDrawableFactory.<clinit>(X11GLDrawableFactory.java:99) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at javax.media.opengl.GLDrawableFactory.getFactory(GLDrawableFactory.java:111) at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:113) at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:82) at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:75) at org.yourorghere.SimpleJOGL2.main(SimpleJOGL2.java:22)Java Result: 1

I get the same in Eclipse so perhaps this don't have anything to do with your code. I just generated your project without any changes. If anyone knows how to help me I'd be very grateful!

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