Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (526)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (593)
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  
  JOGL on Java 1.4.2 for OSX?  (Read 3827 times)
0 Members and 1 Guest are viewing this topic.
Offline rhodes

Junior Newbie




Java games rock!


« Posted 2004-02-03 17: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.
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #1 - Posted 2004-02-04 00:59:09 »

Have you tried the nighly build?

http://www.gregorypierce.com

She 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!
Offline rhodes

Junior Newbie




Java games rock!


« Reply #2 - Posted 2004-02-04 01: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!
Legends of Yore - The Casual Retro Roguelike
Offline skybrian

Innocent Bystander





« Reply #3 - Posted 2004-02-04 01:57:45 »

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?
Offline rhodes

Junior Newbie




Java games rock!


« Reply #4 - Posted 2004-02-04 03: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.
Offline fhmiv

Junior Newbie





« Reply #5 - Posted 2004-02-04 11: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.
Offline vrmad3d

Junior Newbie




Go VR-MAD!


« Reply #6 - Posted 2004-02-06 23: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.net

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

Offline zster

Junior Newbie




Java games rock!


« Reply #7 - Posted 2004-02-07 19:41:50 »

try ant 1.5.3-1, seems to be the only version of ant that works for me.

Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #8 - Posted 2004-02-08 14:28:24 »

Yeah, for some reason the version of ant does make a difference.

http://www.gregorypierce.com

She 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!
Offline rhodes

Junior Newbie




Java games rock!


« Reply #9 - Posted 2004-02-09 03: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!
Legends of Yore - The Casual Retro Roguelike
Offline andyskinner

Senior Newbie





« Reply #10 - Posted 2004-02-09 11: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.html

andy
Offline jganitkevitch

Junior Newbie




Java games rock!


« Reply #11 - Posted 2004-02-19 14: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
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #12 - Posted 2004-02-19 17: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.com

She 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!
Offline jganitkevitch

Junior Newbie




Java games rock!


« Reply #13 - Posted 2004-02-19 20: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 Smiley

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
Offline pdjensen

Senior Newbie





« Reply #14 - Posted 2004-02-19 20: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
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #15 - Posted 2004-02-19 20: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.com

She 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!
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #16 - Posted 2004-02-19 20:30:44 »

BTW, the latest stuff that I've posted is at:

https://jogl.dev.java.net/servlets/ProjectDocumentList?folderID=271

http://www.gregorypierce.com

She 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!
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #17 - Posted 2004-02-19 20:32:32 »

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 Smiley

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.com

She 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!
Offline jganitkevitch

Junior Newbie




Java games rock!


« Reply #18 - Posted 2004-02-24 07: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
Offline Freddy

Junior Newbie




Java games rock!


« Reply #19 - Posted 2004-02-29 02: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 ^_^
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #20 - Posted 2004-02-29 03:08:22 »

Ant 1.5.1 is what I'm using and I have no issues, build it at least 5 times a day Smiley

http://www.gregorypierce.com

She 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!
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #21 - Posted 2004-02-29 03:11:07 »

Quote
[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.com

She 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!
Offline Freddy

Junior Newbie




Java games rock!


« Reply #22 - Posted 2004-02-29 08:38:41 »

Hi,

Before I give up, I tried jdk1.4.1.

It works!  Tongue
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #23 - Posted 2004-02-29 14: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.com

She 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!
Offline shawnkendall

Senior Devvie





« Reply #24 - Posted 2004-03-19 07: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!

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

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #25 - Posted 2004-03-20 22: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.com

She 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!
Offline Mithrandir

Senior Devvie




Cut from being on the bleeding edge too long


« Reply #26 - Posted 2004-03-20 23: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.

The site for 3D Graphics information http://www.j3d.org/
Aviatrix3D JOGL Scenegraph http://aviatrix3d.j3d.org/
Programming is essentially a markup language surrounding mathematical formulae and thus, should not be patentable.
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #27 - Posted 2004-03-21 03: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.com

She 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!
Offline rhodes

Junior Newbie




Java games rock!


« Reply #28 - Posted 2004-03-29 16: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.
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.

toopeicgaming1999 (71 views)
2014-11-26 15:22:04

toopeicgaming1999 (60 views)
2014-11-26 15:20:36

toopeicgaming1999 (14 views)
2014-11-26 15:20:08

SHC (27 views)
2014-11-25 12:00:59

SHC (25 views)
2014-11-25 11:53:45

Norakomi (31 views)
2014-11-25 11:26:43

Gibbo3771 (25 views)
2014-11-24 19:59:16

trollwarrior1 (38 views)
2014-11-22 12:13:56

xFryIx (77 views)
2014-11-13 12:34:49

digdugdiggy (55 views)
2014-11-12 21:11:50
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!