LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Matzon on April 11, 2010, 18:27:58

Title: LWJGL 2.4.2 Released
Post by: Matzon on April 11, 2010, 18:27:58
Time for a new update - with a slew of new stuff and fixes

2.4

2.4.1

2.4.2

https://sourceforge.net/projects/java-game-lib/files/

Remember to donate (http://lwjgl.org/donations.php) ;)

Notice: I'd like to remind people to include the copyright, conditions and disclaimer statement for LWJGL in their products, as required by the license. Though we are not about to claim foul in any way, it would be nice to see a link back to lwjgl.org in the credits or documentation at the very minimum.
Title: Re: LWJGL 2.4 Released
Post by: Matzon on April 11, 2010, 19:57:12
Please note - JNLP is b0rked at the moment - working on it - THANKS ORACLE! - WAY TO BLOW THINGS UP!
Title: Re: LWJGL 2.4 Released
Post by: Matzon on April 11, 2010, 20:23:25
Please note - JNLP is b0rked at the moment - working on it - THANKS ORACLE! - WAY TO BLOW THINGS UP!

any takers?
http://lwjgl.pastebin.com/6hFfkd4R

please note that the referenced jnlp file may have been updated back to its original state
Title: Re: LWJGL 2.4 Released
Post by: basil on April 11, 2010, 20:58:40
am I missing something ?

Code: [Select]
java.lang.NoSuchMethodError: Method org.lwjgl.openal.AL10.alEnable(I)V is not declared as native
        at org.lwjgl.openal.AL10.initNativeStubs(Native Method)
        at org.lwjgl.openal.AL.init(AL.java:158)
        at org.lwjgl.openal.AL.create(AL.java:140)
        at org.lwjgl.openal.AL.create(AL.java:104)
Title: Re: LWJGL 2.4 Released
Post by: Matzon on April 11, 2010, 21:06:26
I dont have problems with openal ...

jnlp sortof fixed ... extension should work and so do all demos that dont use resources

unable to fix at this point in time - see http://www.javagaming.org/index.php/topic,22230.0.html

will be fixed one of these days when the changes needed have been done.

for now, extension works as do all demos, just not the ones that require resources.
Title: Re: LWJGL 2.4 Released
Post by: kappa on April 11, 2010, 21:50:48
am I missing something ?

Code: [Select]
java.lang.NoSuchMethodError: Method org.lwjgl.openal.AL10.alEnable(I)V is not declared as native
        at org.lwjgl.openal.AL10.initNativeStubs(Native Method)
        at org.lwjgl.openal.AL.init(AL.java:158)
        at org.lwjgl.openal.AL.create(AL.java:140)
        at org.lwjgl.openal.AL.create(AL.java:104)

which OS and java version are you using?
Title: Re: LWJGL 2.4 Released
Post by: basil on April 11, 2010, 22:15:32
win7 / java 1.6.0_10 ..

works by now tho' .. I think netbeans just flipped out.  :o ..
compiled just fine when removed the jwlgl sources from the library .. no idea.
Title: Problem with new version
Post by: qualle2008 on April 12, 2010, 03:09:02
hi, i have a problem with 2.4 on mac os x 10.6.

Exception in thread "main" java.lang.LinkageError:
Version mismatch: jar version is '18', native libary version is '17'

i followed the guide on http://lwjgl.org/installation.php.

thanks.

Title: Re: Problem with new version
Post by: Matzon on April 12, 2010, 07:13:12
hi, i have a problem with 2.4 on mac os x 10.6.

Exception in thread "main" java.lang.LinkageError:
Version mismatch: jar version is '18', native libary version is '17'

we got a report on that on IRC -  seems something funky is going on for os x...

looking into that
Title: Re: Problem with new version
Post by: qualle2008 on April 12, 2010, 14:03:40
we got a report on that on IRC -  seems something funky is going on for os x...

looking into that

stacktrace:

Exception in thread "main" java.lang.LinkageError: Version mismatch: jar version is '18', native libary version is '17'
   at org.lwjgl.Sys.<clinit>(Sys.java:103)
   at tutor.SysSnippet.main(SysSnippet.java:7)

The exception is thrown because DefaultSysImplementation#getJNIVersion()
return different value as the MacOSXSysImplementation.getRequiredJNIVersion(),
which is always 18. DefaultSysImplementation#getJNIVersion() is a native
method and it works.

Title: Re: LWJGL 2.4 Released
Post by: Fool Running on April 13, 2010, 12:34:32
I could have sworn I commented on this... :-\

Anyways, keep up the good work, guys.  8)
Title: Re: LWJGL 2.4 Released
Post by: elias4444 on April 13, 2010, 23:18:01
Any news on the Mac OS linkage error? I'm getting it too.
Title: Re: LWJGL 2.4 Released
Post by: Matzon on April 14, 2010, 05:27:13
ive been hammering at the build system to not making it happen again - but have issues to make this work. However I plan on doing a 2.4.1 release tonight. In the mean time a binary from the build system should work now.
Title: Re: LWJGL 2.4.2 Released
Post by: Matzon on April 15, 2010, 21:05:40
download updated with 2.4.2

jnlp is still broken and this is being worked on - but not as high priority. Hopefully fixed by the end of the weekend.
Title: Re: LWJGL 2.4.2 Released
Post by: elias4444 on April 15, 2010, 22:10:24
Thanks Matzon, excellent work as always!
Title: Re: LWJGL 2.4.2 Released
Post by: ryanm on April 16, 2010, 10:20:50
Something I noticed with the XRandR class changes - the populate() call that happens on startup has been wrapped in a doPrivileged(), but setConfiguration() has not. They both use Runtime.exec, so I imagine they need the same level of privileged-ness.
Probably not a huge concern as it only happens at shutdown, mind.
Title: Re: LWJGL 2.4.2 Released
Post by: kappa on April 16, 2010, 11:27:45
Something I noticed with the XRandR class changes - the populate() call that happens on startup has been wrapped in a doPrivileged(), but setConfiguration() has not. They both use Runtime.exec, so I imagine they need the same level of privileged-ness.
Probably not a huge concern as it only happens at shutdown, mind.

ah nicely spotted, guess the current fix was just to stop the applets from blowing up.
Will have an in depth look at this tonight. From a quick glance it seems that as you mention setConfiguration() needs a doPrivileged() and the populate() method in the getScreenNames().

doesn't look like anything severe though and can probably wait for the next release. Besides only effects linux when using unsigned jars with lwjgl.jar, i.e. the LWJGL applet distribution, your unlikely to change screen resolution with applets anyway.
Title: Re: LWJGL 2.4.2 Released
Post by: qualle2008 on April 16, 2010, 14:01:06
Thank you, it works now.
Title: Re: LWJGL 2.4 Released
Post by: heinz on April 21, 2010, 20:22:32
am I missing something ?

Code: [Select]
java.lang.NoSuchMethodError: Method org.lwjgl.openal.AL10.alEnable(I)V is not declared as native
        at org.lwjgl.openal.AL10.initNativeStubs(Native Method)
        at org.lwjgl.openal.AL.init(AL.java:158)
        at org.lwjgl.openal.AL.create(AL.java:140)
        at org.lwjgl.openal.AL.create(AL.java:104)

I'm having the same problem. I created a another workspace in eclipse and tried to run the Lesson1.java audio tutorial, but it did not fix the problem. The library path has been set.
Running on Win7 64bit.

Thanks,
Heinz
Title: Re: LWJGL 2.4.2 Released
Post by: ido on April 26, 2010, 11:27:20
Is there an estimate on when the new version will be uploaded to http://lwjgl.org/jnlp/?

That would be a real help as the current one (I guess 2.4?) crashes on mac and linux.

Thanks for all the hard work!
Title: Re: LWJGL 2.4.2 Released
Post by: Matzon on April 26, 2010, 18:49:46
Is there an estimate on when the new version will be uploaded to http://lwjgl.org/jnlp/?

That would be a real help as the current one (I guess 2.4?) crashes on mac and linux.

Thanks for all the hard work!

updated  - but broke the demos - assuming its a classpath issue due to the u19/u20 changes will look into that soon
Title: Re: LWJGL 2.4.2 Released
Post by: Matzon on April 26, 2010, 22:11:21
updated again - running 2.4.2, plus this fix: http://java-game-lib.svn.sourceforge.net/viewvc/java-game-lib/trunk/LWJGL/src/java/org/lwjgl/util/WaveData.java?r1=3274&r2=3336&view=patch
Title: Re: LWJGL 2.4 Released
Post by: ryanm on April 27, 2010, 12:00:33
am I missing something ?

Code: [Select]
java.lang.NoSuchMethodError: Method org.lwjgl.openal.AL10.alEnable(I)V is not declared as native
        at org.lwjgl.openal.AL10.initNativeStubs(Native Method)
        at org.lwjgl.openal.AL.init(AL.java:158)
        at org.lwjgl.openal.AL.create(AL.java:140)
        at org.lwjgl.openal.AL.create(AL.java:104)

I'm having the same problem. I created a another workspace in eclipse and tried to run the Lesson1.java audio tutorial, but it did not fix the problem. The library path has been set.
Running on Win7 64bit.

Thanks,
Heinz

I had this too. It seems to be some evil lurking in Eclipse as running from the command line works fine. I'm not exactly sure what I did to fix it, but it was some combination of: cleaning the workspace, closing and opening projects, restarting eclipse, deleting and recreating run configurations.
Title: Re: LWJGL 2.4 Released
Post by: basil on April 27, 2010, 20:07:29
am I missing something ?

Code: [Select]
java.lang.NoSuchMethodError: Method org.lwjgl.openal.AL10.alEnable(I)V is not declared as native
        at org.lwjgl.openal.AL10.initNativeStubs(Native Method)
        at org.lwjgl.openal.AL.init(AL.java:158)
        at org.lwjgl.openal.AL.create(AL.java:140)
        at org.lwjgl.openal.AL.create(AL.java:104)

I'm having the same problem. I created a another workspace in eclipse and tried to run the Lesson1.java audio tutorial, but it did not fix the problem. The library path has been set.
Running on Win7 64bit.

Thanks,
Heinz

I had this too. It seems to be some evil lurking in Eclipse as running from the command line works fine. I'm not exactly sure what I did to fix it, but it was some combination of: cleaning the workspace, closing and opening projects, restarting eclipse, deleting and recreating run configurations.
sounds like what I had to do with netbeans too to get this fixed, tho' it looked like it was linked to the sources.
Title: Re: LWJGL 2.4.2 Released
Post by: Ciardhubh on May 07, 2010, 14:43:33
Me too:
Code: [Select]
Exception in thread "main" java.lang.NoSuchMethodError: Method org.lwjgl.openal.AL10.alEnable(I)V is not declared as native
        at org.lwjgl.openal.AL10.initNativeStubs(Native Method)
        at org.lwjgl.openal.AL.init(AL.java:158)
        at org.lwjgl.openal.AL.create(AL.java:140)
        at org.lwjgl.openal.AL.create(AL.java:104)
        at org.lwjgl.openal.AL.create(AL.java:191)

I get this error when I use lwjgl-debug.jar instead of lwjgl.jar. Works fine when I use lwjgl.jar.

Maybe one of the checks introduced in the debug jar tries to call some native before it has been initialised? Then again I kind of hit a roadblock trying to find the cause as my JNI knowledge isn't that good and I couldn't find out which source is used for the debug jar.

On:
LWJGL 2.4.2 #255 (latest build at time of writing)
Ubuntu Linux 9.10 32 bit
JDK 1.6 u20
Title: Re: LWJGL 2.4.2 Released
Post by: spasi on May 07, 2010, 17:04:55
Sorry about this, OpenAL's debug build broke when I removed error checking from the non-debug build. Fixed on the next nightly.
Title: Re: LWJGL 2.4.2 Released
Post by: Simon Felix on May 28, 2010, 07:58:35
Thanks for the new version. I'm one of the developers that could upgrade without any problems whatsoever.

I really like the new convenience functions ("new: Updates to OpenGL methods to allow easier usage (support for single primitive input/output parameters)."). Makes my code a bit more readable.
Title: Re: Problem with new version
Post by: lobsterman on May 29, 2010, 09:59:43
stacktrace:

Exception in thread "main" java.lang.LinkageError: Version mismatch: jar version is '18', native libary version is '17'
   at org.lwjgl.Sys.<clinit>(Sys.java:103)
   at tutor.SysSnippet.main(SysSnippet.java:7)

The exception is thrown because DefaultSysImplementation#getJNIVersion()
return different value as the MacOSXSysImplementation.getRequiredJNIVersion(),
which is always 18. DefaultSysImplementation#getJNIVersion() is a native
method and it works.

i too got this error and found an old set of native libs in my /Library/Java/Extensions/ folder - replace these with the ones from the new download and you should be back in business
Title: Re: Problem with new version
Post by: kappa on May 29, 2010, 10:28:21
i too got this error and found an old set of native libs in my /Library/Java/Extensions/ folder - replace these with the ones from the new download and you should be back in business

you should never put any natives, especially lwjgl ones in java /Library/Java/Extensions/ folder. its just the wrong way to do it.
Title: Re: LWJGL 2.4.2 Released
Post by: princec on June 07, 2010, 14:06:24
Just a quick q. - which version of OpenAL-Soft do we ship in 2.4.2?

Cas :)
Title: Re: LWJGL 2.4.2 Released
Post by: Matzon on June 07, 2010, 14:21:33
not sure - probably 1.7 based, bit old ... try running the OpenALInfo java app (somehwre in test) ...