Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (115)
games submitted by our members
Games in WIP (562)
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 1600 times)
0 Members and 1 Guest are viewing this topic.
Offline Ken Russell

JGO Coder




Java games rock!


« Posted 2003-07-18 06: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 11: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 11: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.

 

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

The first screenshot will be displayed as a thumbnail.

radar3301 (9 views)
2014-09-21 23:33:17

BurntPizza (28 views)
2014-09-21 02:42:18

BurntPizza (18 views)
2014-09-21 01:30:30

moogie (20 views)
2014-09-21 00:26:15

UprightPath (27 views)
2014-09-20 20:14:06

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

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

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

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

Tekkerue (50 views)
2014-09-09 02:24:56
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!