JavaGaming.org

September 02, 2010, 10:07:14 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Advanced search  
Pages: 1 [2]   Go Down
Print
Author Topic: JOGL Project Template available for NetBeans  (Read 26237 times)
0 Members and 1 Guest are viewing this topic.
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #30 on: March 12, 2007, 01:20:23 am »

What platform are you running on? I just tested this on wndows, so there might be something wrong with the *nix setup of my template :/
cylab
Logged

gregof
Full Member
***
Offline Offline

Gender: Male
Posts: 141


in code we trust


View Profile WWW
« Reply #31 on: March 12, 2007, 08:42:35 am »

Hi i got the same error as Mange:
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:822)
        at java.lang.System.loadLibrary(System.java:993)
        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:164)
        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.tests.SimpleJOGL.main(SimpleJOGL.java:22)

I'm running Kubuntu, so i guess that it might be some linux issue with your template.
Very nice work though //
                                         Gregof
Logged
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #32 on: March 12, 2007, 08:55:13 am »

Thanks for testing this out. I guess you tried to run the app through netbeans "play"-button!? Would you mind to add

Code:
System.out.println(System.getProperty("java.library.path"));

to the main-method of the SimpleJOGL class and post the result here?

Thanks
cylab
Logged

gregof
Full Member
***
Offline Offline

Gender: Male
Posts: 141


in code we trust


View Profile WWW
« Reply #33 on: March 12, 2007, 09:15:48 am »

Sure, it prints:  /opt/netbeans-5.5/nb5.5/libs/jogl.jar/../jogl-natives-linux-i586
And yes, I used the "play"-button.
//  Gregof
Logged
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #34 on: March 12, 2007, 09:23:21 am »

could you please check, if there is a "libgluegen-rt.so" in "/opt/netbeans-5.5/nb5.5/libs/jogl-natives-linux-i586"?
Logged

gregof
Full Member
***
Offline Offline

Gender: Male
Posts: 141


in code we trust


View Profile WWW
« Reply #35 on: March 12, 2007, 09:27:45 am »

There is:
/opt/netbeans-5.5/nb5.5/libs/jogl-natives-linux-i586$ ls
libgluegen-rt.so  libjogl_awt.so  libjogl_cg.so  libjogl.so
// Gregof
Logged
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #36 on: March 12, 2007, 09:48:52 am »

Strange. Maybe I packaged the wrong binaries!? Is there any way to check if the libgluegen-rt.so is suitable for your platform? If so, would you mind doing that?

Another test would be to create a distribution, by right-clicking the project node and select "build project".
After that, open a shell and go to the dist-linux-i586 folder in the projects directory. Type
Code:
java -jar SimpleJOGL.jar -Djava.library.path=./
and post the result.

Thanks for helping!
cylab


Logged

gregof
Full Member
***
Offline Offline

Gender: Male
Posts: 141


in code we trust


View Profile WWW
« Reply #37 on: March 13, 2007, 04:18:39 am »

Hi again
I'm not sure how to check if the libgluegen-rt.so is correct for my plattform, I did a ldd though;
ldd -v libgluegen-rt.so
 linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dc9000)
        /lib/ld-linux.so.2 (0x80000000)

        Version information:
        ./libgluegen-rt.so:
                libc.so.6 (GLIBC_2.1.3) => /lib/tls/i686/cmov/libc.so.6
        /lib/tls/i686/cmov/libc.so.6:
                ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
                ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2

If someone knows a way to verify that these are the correct binaries, i would love to know :-)
I tried running from the shell to, it produces exactly the same result.
// Gregof
Logged
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #38 on: March 13, 2007, 11:43:45 am »

first: my shell command posted above was wrong
Code:
java -Djava.library.path=. -jar SimpleJOGL.jar
should work.

second: I found the bug...
I made the wrong asumption, that "/foo/bar/jogl.jar/../jogl-natives-linux-i586" resolves to "/foo/bar/jogl-natives-linux-i586" on linux, which is wrong. "/foo/bar/jogl.jar/../jogl-natives-linux-i586" simple is an invalid path on linux :/

I have to change the libraries layout in the module to fix that. In the meanwhile, open the "nbproject/project.properties"-file and change the property "run-sys-prop.java.library.path" (line 59) to your jogl-natives folder in the netbeans-installation (e.g for gregorf: /opt/netbeans-5.5/nb5.5/libs/jogl-natives-linux-i586)

Sorry about that :/ I'll post an update soon.

cylab
Logged

gregof
Full Member
***
Offline Offline

Gender: Male
Posts: 141


in code we trust


View Profile WWW
« Reply #39 on: March 13, 2007, 04:46:52 pm »

Hi, thank you for fixing this.
With the changes to nbproject/project.properties  it worked, I cant belive I missed the broken path before    Grin
I look forward to the next version, keep the good work up!
// Gregof
Logged
Mange
JGO n00b
*
Offline Offline

Posts: 2


View Profile
« Reply #40 on: March 15, 2007, 04:09:17 am »

I also did the changes but still get the very same error message. Even tried downloading the library myself and set a path to that without any luck. I'm gonna try on a different computer to see if that makes any difference, since I get the very same error in Eclipse (even when using -Djava.library.path=path/to/natives). I've started to experimenting with OpenGL in C/C++ insead in the mean time.

Might take a week or so before I get that other computer up and running. It's a desktop and I only have a wireless connection right now, need to drill some holes and get some network cables in place. But when I'm finished I'll report back. I'm running xubuntu with an ATI-based graphics card. Should not be an issue since all examples work fine (glx gears etc).

Thanks for your help.
Logged
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #41 on: March 15, 2007, 05:53:05 am »

@Mange
Please make sure, you haven't installed any other version of jogl/gluegen and their natives on your system. Especially make sure, you don't have a jogl.jar under [jre|jdk]/lib/ext
Logged

bienator
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 614


OutOfCoffeeException


View Profile WWW
« Reply #42 on: March 29, 2007, 02:29:19 pm »

Hi,

i get this exception if I run the GLSL Editor with NetBeans 6 m8:
Code:
WARNUNG [org.netbeans.modules.editor.settings.storage.XMLStorage]: XML parser error in file Editors/text/x-glsl-fragment-shader/NetBeans/Defaults/coloring.xml
org.xml.sax.SAXParseException: Document root element "fontscolors", must match DOCTYPE root "null".
        at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
[catch] at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
        at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
        at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.rootElementSpecified(XMLDTDValidator.java:1621)
....

regards,
bienator
Logged

cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #43 on: March 30, 2007, 12:12:21 am »

Thanks for the report. Never tried the plugins in NB6. I'll hava a look.

cylab
Logged

bienator
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 614


OutOfCoffeeException


View Profile WWW
« Reply #44 on: April 02, 2007, 11:14:44 am »

Hi again,

I have written a NB module for native GLSL compiler integration into the IDE (screen shot attached). I have some questions on your implementation of the GLSL modules. Perhaps it would make sense to add my module to your updatecenter. So, if you are interested, please send me a PM with your mail address.

regards,
bienator
Logged

cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #45 on: April 29, 2007, 07:12:51 am »

I just updated the project template to JOGL JSR-231 1.1.0-Final.  You can download the available modules here:
   http://cylab.codewut.de/nbms/50/net-highteq-gamedev-nbm-joglproject.nbm
 
Or download and install the Update-Center:
   http://cylab.codewut.de/nbms/50/net-highteq-gamedev-nbm-updatecenter.nbm

After that you can install the modules (and keep track of future updates) via the "Gamedev Updatecenter" under |Tools|->|Update Center|.

This version should also fix the problems when running under linux, so try it out!

NOTE: existing projects will not get updated
I had to change the natives layout to fix the linux bug, so this version is not compatible with already created projects. The old projects will remain to work, but don't benefit from the jogl update - they will still use the old jar versions. I am confident, that this is the last time this will occur.
Logged

gust
JGO n00b
*
Offline Offline

Gender: Male
Posts: 8

Vive le Java !


View Profile
« Reply #46 on: May 20, 2007, 06:59:16 am »

Could you update your template for netbeans 6?
The GLSL editor and compiler integration module looks great (by looking at the screensot), do you plan to use it?
Logged
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #47 on: May 20, 2007, 07:07:54 am »

I have very limited free time at the moment due to work, but bienator has contacted me some time ago and he set up a project on java.net: NetBeans OpenGL Pack. We will merge our codebases there, prepare a NB6 compatible release and make the source available under BSD licence via SVN. I will post here as soon as something is available.
Logged

quintesse
Full Member
***
Offline Offline

Posts: 124


Java games rock!


View Profile
« Reply #48 on: July 25, 2007, 12:46:34 am »

Any news yet when the NB6 template will be available? :-)
Logged
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #49 on: July 25, 2007, 02:00:24 am »

Actually there is not so much to do and the SVN-trunk already runs fine on NB6, but it still misses some polishing and minor improvements. We plan to make a release available within the next two weeks.
Logged

bienator
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 614


OutOfCoffeeException


View Profile WWW
« Reply #50 on: July 25, 2007, 05:41:08 am »

Any news yet when the NB6 template will be available? :-)
yes, please be patient, we are short before the release. The NetBeans OpenGL Pack has now a New and Noteworthy page for more info.
https://netbeans-opengl-pack.dev.java.net/servlets/ProjectProcess?tab=1

feel free to checkout from svn and try if you can't wait Wink
Logged

bienator
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 614


OutOfCoffeeException


View Profile WWW
« Reply #51 on: August 09, 2007, 10:26:38 am »

A preview release of the NetBeans OpenGL Pack is now available. Please see this thread for more information:
http://www.javagaming.org/index.php/topic,18726.0.html
« Last Edit: October 13, 2008, 10:06:51 am by bienator » Logged

bienator
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 614


OutOfCoffeeException


View Profile WWW
« Reply #52 on: April 16, 2008, 03:18:55 pm »

please use the NetBeans Plugin Portal to get the OpenGL Pack (version 0.5.1 and later)
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3260
Logged

bienator
JGO Ninja
*****
Offline Offline

Gender: Male
Posts: 614


OutOfCoffeeException


View Profile WWW
« Reply #53 on: June 29, 2009, 10:25:36 am »

NetBeans OpenGL Pack 0.5.5 ships now JOGL 1.1.1a, adds NetBeans 6.7 support (which was released today) and adds a few other things.
release notes
get it while its hot:
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=3260
Logged

Cork
Full Member
***
Offline Offline

Posts: 138


vote 6uN for OSX


View Profile
« Reply #54 on: July 17, 2009, 06:17:10 am »

It's my first day looking at NetBeans (bit fed up with eclipse and workspace / svn issues everytime I upgrade). 

Anyway, I was pleased to see a NB JOGL plugin possibility.  Couple of questions though:

Which version of the plugin can I use under OSX with java 1.5?  I saw a mention that the latest plugin bundle needs 1.6?

Are there plans to include JOGL 2 templates/demos support? including ES?
Logged
cylab
JGO Kernel
*********
Offline Offline

Gender: Male
Posts: 1569


View Profile WWW
« Reply #55 on: July 17, 2009, 07:05:00 am »

Just try it out. In the worst case you might loose the glsl editor. The templates and such should work.

As for JOGL 2.0, we will updgrade/support JOGL 2.0, but have no eta or ideas how exaclty it will look like atm. We will keep you posted about that.
Logged

Cork
Full Member
***
Offline Offline

Posts: 138


vote 6uN for OSX


View Profile
« Reply #56 on: July 17, 2009, 02:12:26 pm »

Not too bad, I lost:

JOGL Utils, GLSLCompiler editor support, GL QuickSearch, GLSL editor, OpenGL capabilities viewer.

Also the form designer? integration generates 1.6 dependant code so that's out the window.

But I really like the fact the red book demos and jogl demos are mostly there.  Not sure what else I might be missing because the plugin and NB are brand new to me Smiley  But I like this template approach.  look forward to some JOGL 2 templates Smiley
Logged
spiraljetty
Jr. Member
**
Offline Offline

Posts: 53


View Profile
« Reply #57 on: July 23, 2009, 02:42:27 pm »

Hi, I am using the Netbeans OpenGL pack on Netbeans 6.7. I am having a small issue with webstart when I am not connected to the internet. It looks like whenever a project using the OpenGL pack is run via webstart it attempts to download jogl/gluegen files remotely. Thus, if I am not online, I get the following error:

Code:
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://download.java.net/media/jogl/builds/archive/jsr-231-1.x-webstart-current/jogl.jar

That is, after I have built the webstart project (while connected), I try to run it again via the dist/launch.html link (while offline).

Now it is my understanding that webstart will attempt to cache downloaded resources or jars and use them if no updates are found or if no internet connection to the resource is available.

Can anyone more experienced with the openGL pack (or with webstart in general) advise me on how to alter my project so that it will launch even if something goes amiss with the internet connection? Or, if I am totally mistaken about the caching thing I guess ignore this post...

Thanks, Angus
Logged
davips
JGO n00b
*
Offline Offline

Posts: 2


View Profile
« Reply #58 on: May 01, 2010, 11:48:23 am »

Any news about "look forward to some JOGL 2 templates" ?  Roll Eyes
Logged
Pages: 1 [2]   Go Up
Print
 
Jump to: