Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2] 3
  ignore  |  Print  
  JOGL Project Template available for NetBeans  (Read 48071 times)
0 Members and 1 Guest are viewing this topic.
Offline cylab

JGO Ninja


Medals: 49



« Reply #30 - Posted 2007-03-12 08:20:23 »

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

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

Junior Member




in code we trust


« Reply #31 - Posted 2007-03-12 15:42:35 »

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
Offline cylab

JGO Ninja


Medals: 49



« Reply #32 - Posted 2007-03-12 15:55:13 »

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

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


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

Thanks
cylab

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 gregof

Junior Member




in code we trust


« Reply #33 - Posted 2007-03-12 16:15:48 »

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

JGO Ninja


Medals: 49



« Reply #34 - Posted 2007-03-12 16:23:21 »

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

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

Junior Member




in code we trust


« Reply #35 - Posted 2007-03-12 16:27:45 »

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
Offline cylab

JGO Ninja


Medals: 49



« Reply #36 - Posted 2007-03-12 16:48:52 »

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
1  
java -jar SimpleJOGL.jar -Djava.library.path=./

and post the result.

Thanks for helping!
cylab



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

Junior Member




in code we trust


« Reply #37 - Posted 2007-03-13 11:18:39 »

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
Offline cylab

JGO Ninja


Medals: 49



« Reply #38 - Posted 2007-03-13 18:43:45 »

first: my shell command posted above was wrong
1  
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

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

Junior Member




in code we trust


« Reply #39 - Posted 2007-03-13 23:46:52 »

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
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Mange

Junior Newbie





« Reply #40 - Posted 2007-03-15 11:09:17 »

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.
Offline cylab

JGO Ninja


Medals: 49



« Reply #41 - Posted 2007-03-15 12:53:05 »

@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

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

Senior Member




OutOfCoffeeException


« Reply #42 - Posted 2007-03-29 21:29:19 »

Hi,

i get this exception if I run the GLSL Editor with NetBeans 6 m8:
1  
2  
3  
4  
5  
6  
7  
8  
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

Offline cylab

JGO Ninja


Medals: 49



« Reply #43 - Posted 2007-03-30 07:12:21 »

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

cylab

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

Senior Member




OutOfCoffeeException


« Reply #44 - Posted 2007-04-02 18:14:44 »

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

Offline cylab

JGO Ninja


Medals: 49



« Reply #45 - Posted 2007-04-29 14:12:51 »

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.

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

Senior Newbie




Vive le Java !


« Reply #46 - Posted 2007-05-20 13:59:16 »

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?
Offline cylab

JGO Ninja


Medals: 49



« Reply #47 - Posted 2007-05-20 14:07:54 »

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.

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

Junior Member




Java games rock!


« Reply #48 - Posted 2007-07-25 07:46:34 »

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

JGO Ninja


Medals: 49



« Reply #49 - Posted 2007-07-25 09:00:24 »

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.

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

Senior Member




OutOfCoffeeException


« Reply #50 - Posted 2007-07-25 12:41:08 »

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

Offline bienator

Senior Member




OutOfCoffeeException


« Reply #51 - Posted 2007-08-09 17:26:38 »

A preview release of the NetBeans OpenGL Pack is now available. Please see this thread for more information:
http://www.java-gaming.org/topics/netbeans-opengl-pack-0-5-2-released/18726/view.html

Offline bienator

Senior Member




OutOfCoffeeException


« Reply #52 - Posted 2008-04-16 22:18:55 »

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

Offline bienator

Senior Member




OutOfCoffeeException


« Reply #53 - Posted 2009-06-29 17:25:36 »

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

Offline Cork

Junior Member




vote 6uN for OSX


« Reply #54 - Posted 2009-07-17 13:17:10 »

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?
Offline cylab

JGO Ninja


Medals: 49



« Reply #55 - Posted 2009-07-17 14:05:00 »

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.

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

Junior Member




vote 6uN for OSX


« Reply #56 - Posted 2009-07-17 21:12:26 »

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
Offline spiraljetty

Senior Newbie





« Reply #57 - Posted 2009-07-23 21:42:27 »

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:

1  
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
Offline davips

Junior Newbie





« Reply #58 - Posted 2010-05-01 18:48:23 »

Any news about "look forward to some JOGL 2 templates" ?  Roll Eyes
Offline gouessej
« Reply #59 - Posted 2012-11-20 07:49:05 »

Any news about "look forward to some JOGL 2 templates" ?  Roll Eyes
Sorry to answer only now. bienator no more maintains Netbeans OpenGL Pack but it is still possible to use JogAmp in Netbeans, it is explained here.

Pages: 1 [2] 3
  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.

BurntPizza (22 views)
2014-09-19 03:14:18

Dwinin (35 views)
2014-09-12 09:08:26

Norakomi (62 views)
2014-09-10 13:57:51

TehJavaDev (88 views)
2014-09-10 06:39:09

Tekkerue (44 views)
2014-09-09 02:24:56

mitcheeb (65 views)
2014-09-08 06:06:29

BurntPizza (47 views)
2014-09-07 01:13:42

Longarmx (35 views)
2014-09-07 01:12:14

Longarmx (40 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!