Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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  
  JOAL and Java Web Start  (Read 3163 times)
0 Members and 1 Guest are viewing this topic.
Offline Ken Russell

JGO Coder




Java games rock!


« Posted 2006-08-31 04:17:35 »

Support for deploying JOAL via Java Web Start is finally in place. I apologize for how long this has taken but we ran into several technical issues involving not only bug fixes to the OpenAL source tree but also to JOAL's and GlueGen's implementations. The good news is that we now have the ability to deploy the latest OpenAL versions on all supported platforms (meaning that OpenAL does not have to be installed ahead of time) and that maintenance will be much easier going forward.

The summary is that all you have to do to include JOAL support in your Java Web Started application is to add this line to your resources section:
1  
<extension name="joal" href="http://download.java.net/media/joal/webstart/joal.jnlp" />


The joal.jnlp file indicates what native libraries, etc. have to be downloaded and installed. There is magic behind the scenes to load up the OpenAL implementation out of the native library jars. Thanks to the LWJGL team for providing open-source code which illustrated some of how to do this. The mechanism we have incorporated is pretty general and will eventually replace some duplicated Java and C code in JOGL as well.

The DevMaster lessons on the joal-demos page have been updated with Java Web Start launch links. Please give them a try and let us know if you run in to any problems with them. We will provide more permanent documentation than just this post in the JOAL workspace in the near future.
Offline shawnkendall

Senior Member





« Reply #1 - Posted 2006-08-31 20:31:35 »

Super!
My team will be glad to hear.
Thanks much.

demos ran fine on PC/XP

Shawn Kendall
Cosmic Interactive, LLC
http://www.facebook.com/BermudaDash
Offline dranonymous

Junior Member




Hoping to become a Java Titan someday!


« Reply #2 - Posted 2006-09-02 05:26:55 »

When I tried to run the first JOAL JWS demo, I got silence.  Sad  I'm using the following -

Mac OSX 10.4.7
Powerbook

Here's a dump of the exception log from JWS -

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Can not get proc address for method "alcCaptureCloseDevice": Couldn't set value of field "_addressof_alcCaptureCloseDevice" in class net.java.games.joal.impl.ALCProcAddressTable
   at com.sun.gluegen.runtime.ProcAddressHelper.resetProcAddressTable(ProcAddressHelper.java:68)
   at net.java.games.joal.impl.ALProcAddressLookup.resetALCProcAddressTable(ALProcAddressLookup.java:100)
   at net.java.games.joal.impl.ALCImpl.alcOpenDevice(ALCImpl.java:342)
   at net.java.games.joal.util.ALut.alutInit(ALut.java:62)
   at demos.devmaster.lesson1.SingleStaticSource.initialize(SingleStaticSource.java:90)
   at demos.devmaster.lesson1.SingleStaticSource$1.actionPerformed(SingleStaticSource.java:182)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
   at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
   at java.awt.Component.processMouseEvent(Component.java:5554)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
   at java.awt.Component.processEvent(Component.java:5319)
   at java.awt.Container.processEvent(Container.java:2010)
   at java.awt.Component.dispatchEventImpl(Component.java:4021)
   at java.awt.Container.dispatchEventImpl(Container.java:2068)
   at java.awt.Component.dispatchEvent(Component.java:3869)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
   at java.awt.Container.dispatchEventImpl(Container.java:2054)
   at java.awt.Window.dispatchEventImpl(Window.java:1774)
   at java.awt.Component.dispatchEvent(Component.java:3869)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Caused by: java.lang.RuntimeException: Unable to find and load OpenAL library
   at net.java.games.joal.impl.ALProcAddressLookup$DynamicLookup.dynamicLookupFunction(ALProcAddressLookup.java:64)
   at com.sun.gluegen.runtime.ProcAddressHelper.resetProcAddressTable(ProcAddressHelper.java:64)
   ... 29 more

Dr. A>
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #3 - Posted 2006-09-03 09:09:27 »

Sorry about that. I broke JOAL's Mac OS X support late in the process and forgot to re-test it before release. Tomorrow's nightly build will work on OS X again, and I'll update the Java Web Start and downloadable binaries soon afterward. You can also check out the gluegen and joal source trees via CVS and build them yourself (not difficult).
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #4 - Posted 2006-09-03 22:56:58 »

The Java Web Start binaries should be working on OS X again. Please post if you see more problems. A new beta, 1.1b03, will be posted probably tomorrow containing the associated fixes to JOAL and GlueGen.
Offline dranonymous

Junior Member




Hoping to become a Java Titan someday!


« Reply #5 - Posted 2006-09-03 23:33:41 »

I tried the demos using JWS from the joal site.  They worked great!  I'll check the new release out and report back if there are any issues.

Thanks!

Dr. A>
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #6 - Posted 2006-09-06 00:06:15 »

JOAL 1.1b03 has been released. Please give it a try and post if you see any issues with it.
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.

pw (24 views)
2014-07-24 01:59:36

Riven (23 views)
2014-07-23 21:16:32

Riven (18 views)
2014-07-23 21:07:15

Riven (21 views)
2014-07-23 20:56:16

ctomni231 (50 views)
2014-07-18 06:55:21

Zero Volt (45 views)
2014-07-17 23:47:54

danieldean (36 views)
2014-07-17 23:41:23

MustardPeter (39 views)
2014-07-16 23:30:00

Cero (54 views)
2014-07-16 00:42:17

Riven (54 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!