Hello,
Has anyone got a version of JOGL that runs on the new 1.4.2 jvm that was released today for OSX? I’m getting a runtime classloader exception, and I have a hunch that libjogl.jnilib is tagged to work with 1.4.1 only. Probably it needs to be tagged as 1.4.* or something similar. Anyway, my first guess is that you need to recompile the library to fix this, but I notice that guest cvs access is broken (and the docs are contradictory). Apparently I have to register at java.net to get an account that’s different from the one I’m using to post this message?
Ugh. I may not have time to jump through all these hoops at the moment, so if someone has a build that works, I’d be very grateful if they could let me know.
Have you tried the nighly build?
Actually, no. Can you point me to where it’s located? Is there a build for OSX?
The nightly build is here:
https://games-binaries.dev.java.net/build/index.html
However, the last build for OS X was on January 27th. Maybe the build is broken due to 1.4.2?
Thanks for the help, guys. Unfortunately, I get the same problem with the last nightly build. It could well be that there’s a non-trivial problem with JOGL and 1.4.2. Good thing I just updated my laptop, and not the desktop too! I’ll post if I figure anything out.
I also found that the old version didn’t work, so I compiled my own after I installed 1.4.2 and the new Java developer tools. By the way, you will need the new Java developer tools to match the 1.4.2 JDK, otherwise you may have version mismatch issues. You can register for a free account with developer.apple.com if you haven’t already to get the updated developer tools.
Guest CVS access for JOGL works for me. I used
:pserver:guest@cvs.dev.java.net:/cvs
as the cvs root for the login and checkout. Their build and test instructions work for me as well.
After installing 1.4.2, the new developer tools, and rebuilding and installing from the latest jogl CVS sources, I am able to run all the same code I was running before the update.
I’m stuck with the following error…
ant -Djogl.cg=0 macosx
Yields this error message… trying to build with cg disabled.
java.generate:
[gluegen] CharScanner; panic: ClassNotFoundException: net.java.games.gluegen.cgram.CToken
BUILD FAILED
file:/Applications/Java_Tools/JOGL/jogl/make/build.xml:537: GlueGen returned: 1
I went to the Nvidia site looking for an OS-X version of “cg” but couldn’t find anything. I’m building under OS-X 10.3.2 with jdk 1.4.2. I also tried putting jogl.cg=0 in the properties file. Still no luck building from source using the latest CVS files. Any suggestions? I’ve been over the Ant files and can’t find the source of the problem. Apache Ant version 1.5.4 compiled on February 6 2004.
Thanks in advance.
P.S. Building under Eclipse yields the following so at least the error is consistent!
build.static.gl.task:
[echo] StaticGLGen ANT task has been built successfully.
java.generate.check:
java.generate:
[gluegen] CharScanner; panic: ClassNotFoundException: net.java.games.gluegen.cgram.CToken
BUILD FAILED: file:/Applications/Java_Tools/JOGL/jogl/make/build.xml:537: GlueGen returned: 1
try ant 1.5.3-1, seems to be the only version of ant that works for me.
Yeah, for some reason the version of ant does make a difference.
fhmiv, thanks for the pointer on the new java tools, I had missed that one. It looks like I’ll still need to compile my own jogl, though. Now, when I try to use CVS to grab the code, I’m using this command line:
cvs -d :pserver:guest@cvs.dev.java.net:/cvs login
after giving the password “guest”, I get the message:
Fatal error, aborting.
guest: no such user
cvs [login aborted]: authorization failed: server cvs.dev.java.net rejected access
I’ve tried this both with and without setting CVS_RSH to ssh. I wonder if it hates dynamic IP addresses or something along those lines.
I wasn’t able to get the CVS checkout to work until I logged in, then followed the instructions, which were updated with my name, instead of guest.
You can get source files from here as well:
https://games-binaries.dev.java.net/build/index.html
andy
Hello everyone,
I seem to experience the problem already mentioned above (jogl apps crash after installing Java 1.4.2).
Although I have Ant 1.5.3 installed, compiling jogl won’t work, with the “ClassNotFound” error posted by vrmad3d.
Is there anyone having the same problem and/or some suggestions?
Thanks for helping,
Juri
What version are you using? If its not the latest nightly build or the latest release build from the site, then you need to upgrade.
Actually I used the CVS version, but either I’m too dumb to get an Ant command line right on the first try, or OS X is an OS which makes problems auto-disappear
Anyway, it compiled the standard jogl now (it seems, some of the tests I did worked, some didn’t - something about the AWT is extremely unstable here…).
Still Ant crashed while trying for the CG part (I did a “ant -Djogl.cg=0 macosx”, he seems to override it…).
In any case, thank you for the quick reply.
Juri
Gregory Pierce wrote:
What version are you using? If its not the latest nightly build or the latest release build from the site, then you need to upgrade.
Checking the cvs repository (:pserver:xxx@cvs.dev.java.net:/cvs jogl) on a fairly regular basis, I’ve seen no changes at all in the source code for months (weeks if you count a change on 1/31 that went in and back out because of my confusion). Same for the source distribution on the nightly build site https://games-binaries.dev.java.net/build/index.html. And I find no release builds there either. Are the nightly builds done off something else? Am I looking in the right places?
I’m not complaining, just making sure I understand the current code state.
pdj
In most cases outside of some changes that I have been posting with some changes I’ve made internally to the source that haven’t been comitted to CVS, what you see is CVS +1 rev. The only reason I haven’t checked in much of these changes is that I’m as of yet unsure of its impact on the core API as there have been some changes there as well.
BTW, the latest stuff that I’ve posted is at:
https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=271
[quote]Actually I used the CVS version, but either I’m too dumb to get an Ant command line right on the first try, or OS X is an OS which makes problems auto-disappear
Anyway, it compiled the standard jogl now (it seems, some of the tests I did worked, some didn’t - something about the AWT is extremely unstable here…).
Still Ant crashed while trying for the CG part (I did a “ant -Djogl.cg=0 macosx”, he seems to override it…).
In any case, thank you for the quick reply.
Juri
[/quote]
I’m not specifically doing anything other than:
ant macosx
Its building fine for me. If its not for you, please post what’s coming out of the ANT process when it fails and I will take a look at it.
Uh, I’m giving up. I just tried to get the error messages to post them here, but…
- I checked out the source from CVS.
- I unset my classpath and pulled the JOGL libs from my Extensions directory.
- I got antlr and put the JAR to my home.
- I edited jogl.properties (in my home) to point to antlr.jar (and commented the CG properties out, makes no difference)
- I ran “ant macosx” and it said
[gluegen] CharScanner; panic: ClassNotFoundException: net.java.games.gluegen.cgram.CToken
again.
Am I missing something?
I’m running a PowerBook 12" with a GeForce420 Go (GeForce4 MX, it is). Panther with all Updates available through Software Update, plus the stuff from ADC.
I can’t guarantee that my system is somehow broken (in Java terms at least), and I’m planning to do a hard & clean reInstall, but that’ll be sometime next week.
Anyway, thanks a lot for your efforts.
Juri
Hi,
I just tried out on the followings:
-
jogl-1.0beta-src.zip 1975432 bytes Feb 28 02:02 2004
-
the release build jogl-win32.zip on Sep 06 2003
-
Ant version 1.5.3-1
-
Ant version 1.5.4
-
Ant version 1.6.1
-
jdk1.4.2
-
jdk1.5.1 beta
-
antlr-2.7.2
-
antlr-2.7.3rc2
but the same error come out:
[gluegen] CharScanner; panic: ClassNotFoundException: net.java.games.gluegen.cgram.CToken
Appricate any help