Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
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  
  Ant build, display list sharing, Java Web Start  (Read 1302 times)
0 Members and 1 Guest are viewing this topic.
Offline Ken Russell

JGO Coder




Java games rock!


« Posted 2003-07-18 08:28:55 »

Some new functionality has recently been checked in to the JOGL and JOGL-demos source trees.

Thanks to Rob Grzywinski and Artur Biesiadowski for the bulk of the work (and to all of you for the feedback), the build processes for JOGL and the demos have been switched from GNU make and the Unix shell environment to pure Ant. There are enough dependencies in the new Ant build files that a rerun of Ant does not perform a full rebuild. The old Makefiles have been deleted from the CVS repository and the build documentation has been updated.

Sharing of display lists and textures between OpenGL contexts has been implemented with a few new methods in GLDrawableFactory which take a GLDrawable as the "share" argument. There is a TestContextSharing test in the jogl-demos tree that illustrates that it is working; this test has been run on Linux, Mac OS X, and Windows. Please post or better yet file an issue if you see any problems with this support.

Java Web Start binaries for the JOGL demos have been posted on http://jogl-demos.dev.java.net/. They seem to be working well on all supported platforms. These demos illustrate unsigned applications referencing the signed JOGL jar as an extension. If you write a JNLP file to do the same, please keep in mind that the final location of the "current" JOGL jar will probably change. Note also that there is a bug in the java.net web server (which is being worked on) that causes all of the jars to be re-downloaded every time any of the demos is launched. Switching Java Web Start to offline mode may work around the problem.

Finally, several posted JOGL issues have been fixed. Thanks to everyone, in particular pepijnve, abies, and albanc, for their patches and suggested fixes.
Offline Rob Nugent

Junior Member




May contain nuts


« Reply #1 - Posted 2003-07-18 13:09:34 »

I just tried to run the JOGL Gears demo via Web Start. Seems OK on Windows, but on Solaris I get an exception at startup thus:

java.lang.ExceptionInInitializerError
     at net.java.games.jogl.impl.GLContext.<clinit>(GLContext.java:51)
     at net.java.games.jogl.impl.x11.X11GLContextFactory.createGLContext(X11GLContextFactory.java:51)
     at net.java.games.jogl.GLCanvas.<init>(GLCanvas.java:70)
     at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:94)
     at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:80)
     at demos.gears.Gears.main(Gears.java:18)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:324)
     at com.sun.javaws.Launcher.executeApplication(Launcher.java:837)
     at com.sun.javaws.Launcher.executeMainClass(Launcher.java:797)
     at com.sun.javaws.Launcher.continueLaunch(Launcher.java:675)
     at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:390)
     at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:199)
     at com.sun.javaws.Launcher.run(Launcher.java:167)
     at java.lang.Thread.run(Thread.java:534)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.jawt)
     at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
     at java.security.AccessController.checkPermission(AccessController.java:401)
     at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
     at java.lang.SecurityManager.checkLink(SecurityManager.java:810)
     at java.lang.Runtime.loadLibrary0(Runtime.java:782)
     at java.lang.System.loadLibrary(System.java:834)
     at net.java.games.jogl.impl.NativeLibLoader.<clinit>(NativeLibLoader.java:46)
     ... 17 more


Anyone got any ideas? This is with J2SDK 1.4.2. I can run other JWS things (such as the Sun 'draw' demo) OK.

Rob
Offline Rob Nugent

Junior Member




May contain nuts


« Reply #2 - Posted 2003-07-18 13:30:33 »

OK - I think I have fixed it.

It seems that the failure was becuase I had a back-level (June) version of JOGL installed in my Java jre/lib/ext directory. I've updated this to the latest version and all now seems OK.

This would seem to imply that the JWS gears demo was picking the JOGL classes up from jre/lib/ext rather than the version downloaded by JWS.

Still a bit puzzled by this

Rob
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (88 views)
2013-05-17 21:29:12

alaslipknot (96 views)
2013-05-16 21:24:48

gouessej (128 views)
2013-05-16 00:53:38

gouessej (123 views)
2013-05-16 00:17:58

theagentd (131 views)
2013-05-15 15:01:13

theagentd (119 views)
2013-05-15 15:00:54

StreetDoggy (161 views)
2013-05-14 15:56:26

kutucuk (184 views)
2013-05-12 17:10:36

kutucuk (185 views)
2013-05-12 15:36:09

UnluckyDevil (191 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.092 seconds with 21 queries.