rhodes
Junior Newbie
Java games rock!
|
 |
«
Posted
2004-02-03 18:28:30 » |
|
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.
|
|
|
|
|
gregorypierce
|
 |
«
Reply #1 - Posted
2004-02-04 01:59:09 » |
|
Have you tried the nighly build?
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
rhodes
Junior Newbie
Java games rock!
|
 |
«
Reply #2 - Posted
2004-02-04 02:41:50 » |
|
Actually, no. Can you point me to where it's located? Is there a build for OSX?
|
|
|
|
|
Games published by our own members! Check 'em out!
|
|
|
|
rhodes
Junior Newbie
Java games rock!
|
 |
«
Reply #4 - Posted
2004-02-04 04:47:59 » |
|
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.
|
|
|
|
|
fhmiv
Junior Newbie
|
 |
«
Reply #5 - Posted
2004-02-04 12:53:05 » |
|
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.
|
|
|
|
|
vrmad3d
Junior Newbie
Go VR-MAD!
|
 |
«
Reply #6 - Posted
2004-02-07 00:28:42 » |
|
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. Dan http://EpicenterTech.netP.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
|
|
|
|
|
zster
Junior Newbie
Java games rock!
|
 |
«
Reply #7 - Posted
2004-02-07 20:41:50 » |
|
try ant 1.5.3-1, seems to be the only version of ant that works for me.
|
|
|
|
|
gregorypierce
|
 |
«
Reply #8 - Posted
2004-02-08 15:28:24 » |
|
Yeah, for some reason the version of ant does make a difference.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
rhodes
Junior Newbie
Java games rock!
|
 |
«
Reply #9 - Posted
2004-02-09 04:48:37 » |
|
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.
|
|
|
|
|
Games published by our own members! Check 'em out!
|
|
andyskinner
Senior Newbie 
|
 |
«
Reply #10 - Posted
2004-02-09 12:27:07 » |
|
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.htmlandy
|
|
|
|
|
jganitkevitch
Junior Newbie
Java games rock!
|
 |
«
Reply #11 - Posted
2004-02-19 15:49:07 » |
|
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
|
|
|
|
|
gregorypierce
|
 |
«
Reply #12 - Posted
2004-02-19 18:25:14 » |
|
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.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
jganitkevitch
Junior Newbie
Java games rock!
|
 |
«
Reply #13 - Posted
2004-02-19 21:23:45 » |
|
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
|
|
|
|
|
pdjensen
Senior Newbie 
|
 |
«
Reply #14 - Posted
2004-02-19 21:26:17 » |
|
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
|
|
|
|
|
gregorypierce
|
 |
«
Reply #15 - Posted
2004-02-19 21:28:29 » |
|
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.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
gregorypierce
|
 |
«
Reply #16 - Posted
2004-02-19 21:30:44 » |
|
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
gregorypierce
|
 |
«
Reply #17 - Posted
2004-02-19 21:32:32 » |
|
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 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.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
jganitkevitch
Junior Newbie
Java games rock!
|
 |
«
Reply #18 - Posted
2004-02-24 08:48:57 » |
|
Uh, I'm giving up. I just tried to get the error messages to post them here, but...
1) I checked out the source from CVS. 2) I unset my classpath and pulled the JOGL libs from my Extensions directory. 3) I got antlr and put the JAR to my home. 4) I edited jogl.properties (in my home) to point to antlr.jar (and commented the CG properties out, makes no difference) 5) 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
|
|
|
|
|
Freddy
Junior Newbie
Java games rock!
|
 |
«
Reply #19 - Posted
2004-02-29 03:34:07 » |
|
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 ^_^
|
|
|
|
|
gregorypierce
|
 |
«
Reply #20 - Posted
2004-02-29 04:08:22 » |
|
Ant 1.5.1 is what I'm using and I have no issues, build it at least 5 times a day 
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
gregorypierce
|
 |
«
Reply #21 - Posted
2004-02-29 04:11:07 » |
|
[gluegen] CharScanner; panic: ClassNotFoundException: net.java.games.gluegen.cgram.CToken
again.
Am I missing something? Juri Yes. The version of ANT you're using is too new and causes ANTLR to break which is where the error is coming from. Use the binaries if you can't acquire a copy of 1.5.1 ant or earlier.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
Freddy
Junior Newbie
Java games rock!
|
 |
«
Reply #22 - Posted
2004-02-29 09:38:41 » |
|
Hi, Before I give up, I tried jdk1.4.1. It works! 
|
|
|
|
|
gregorypierce
|
 |
«
Reply #23 - Posted
2004-02-29 15:13:03 » |
|
Where'd you find a version of JDK1.4.1 for OSX? It doesn't exist anymore - everything is 1.3.1 or 1.4.2.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
shawnkendall
|
 |
«
Reply #24 - Posted
2004-03-19 08:25:44 » |
|
Ok so I am a newbie again! I am posting this from my brand-spanking new Mac powerbook. And of course I was totally disappointer (not to mention a bit concerned) that the web start JOGL demos failed to run on this thing. I have the latest Java 1.4.2. Did anyone solve this JOGL problem on Mac OSX? Sure would like to show some Mac demos at GDC.... Thanks for any help!
|
|
|
|
gregorypierce
|
 |
«
Reply #25 - Posted
2004-03-20 23:21:35 » |
|
Sure - the problems were solved a long time ago. Unfortuntely no one has the ability to update the 'official' webstart libraries for the Mac so none of the demos will work. I've mentioned this several times but since gave up since no one was listening.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
Mithrandir
|
 |
«
Reply #26 - Posted
2004-03-21 00:14:10 » |
|
Greg, since I have our servers floating around hosting j3d.org, would you be interested in starting up a separate unofficial CVS repository hosted there? All the people working on doing improvements to JOGL can have write access to it and we can update to our hearts content until the Sun people return to the job. I'd hate to see all the good work you guys are doing (and a little myself as I tinker with GL1.5 shader objects) go to waste.
|
|
|
|
gregorypierce
|
 |
«
Reply #27 - Posted
2004-03-21 04:37:41 » |
|
Sure - I have no problem with that. The logistics of it could get somewhat messy since I'd be contributing to two different trees. So for the moment while I appreciate the offer - I don't think that it would be in our overall best interest to do that. Lemme think about it for a few days. We need to solve the problem for certain - but at the same time I don't want to complicate things.
|
http://www.gregorypierce.comShe builds, she builds oh man When she links, she links I go crazy Cause she looks like good code but she's really a hack I think I'll run upstairs and grab a snack!
|
|
|
rhodes
Junior Newbie
Java games rock!
|
 |
«
Reply #28 - Posted
2004-03-29 18:24:33 » |
|
So, there's a happy ending to this thread after all. It turns out that the more recent nightly builds _do_ work on 10.3 with Java 1.4.2 Update 1 (Developer Preview). With just plain old 1.4.2, you may run into an exception involving AWT and the fact that the 1.4.1 java version has been removed entirely. I resolved this by making the appropriate link in my Frameworks directory, but since the problem goes away with the latest update, I'd recommend just using the newest Apple JVM. Thanks to everyone for all your help.
|
|
|
|
|
|