Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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  
  Java3D with WebStart for Linux, Mac  (Read 1196 times)
0 Members and 1 Guest are viewing this topic.
Offline bmyers

Junior Member





« Posted 2004-06-09 23:46:46 »

Has anybody here gotten Java3D to work via WebStart on Mac OS X and/or Linux?  We've got it working for Winxxx but not sure of what libraries to grab for the other OS's.

Herk, you've gotten this to work for Flying Guns, right?

Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #1 - Posted 2004-06-10 10:00:18 »

FG uses the most simple solution: Java3D has to installed upfront! Sad

But for this seems to become a topic those days, we should consider to create a propert JNLP fragment that installs Java3D as an extension.
I think I could do Linux as well, but for Mac/Solaris/HPUX/Irix we'd need someone who has access to those machines.

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #2 - Posted 2004-06-10 15:08:29 »

(I'd asked Herk for help a couple of days ago on the same topic)

Herk, if you can setup something you think works I'll test it out on linux. I think it would be great to get it up here in the j3d forum (and make it sticky, perhaps?).

Meanwhile, Kev is doing a second article on webstart at the moment, and I've been asking him to put in some more common JNLP fragments for things like this, so perhaps when we've got it working he could include whatever j3d we come up with? It would be REALLY nice if someone could persuade Sun to host the signed JAR's for this as a "webstart extension" so that we could make a JNLP fragment which directly installs j3d from the sun webservers (save players, and authors, lots of bandwidth, and make setting it up for distribution easier).

malloc will be first against the wall when the revolution comes...
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #3 - Posted 2004-06-10 21:13:53 »

It can't be done for Mac.  You must download Java3D from Apple and install it.  Which is not that hard really - it's a Mac so it "just works" Smiley
(Actually the Java guys at Apple seemed to have a few installer issues associated with the Panther upgrade and Quicktime... but it seems to be better now)

http://docs.info.apple.com/article.html?artnum=120289

http://www.apple.com/macosx/features/java/

Offline pepe

Junior Member




Nothing unreal exists


« Reply #4 - Posted 2004-06-11 07:10:38 »

Quote
FG uses the most simple solution: Java3D has to installed upfront! Sad

By the way, i tried flying guns under 1.5 and had forgot to install java3d before. game silply crashed without a message. had to restart with jaws console to know what happened. Can't you test for java3d existence before starting it and showing a proper message if not present? (something like testing if class.forName(a j3d class)  works before even opening anything related to java3d )

Home page: http://frederic.barachant.com
------------------------------------------------------
GoSub: java2D gamechmark http://frederic.barachant.com/GoSub/GoSub.jnlp
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #5 - Posted 2004-06-11 08:34:53 »

Sure, I could. Just yet didn't out of lazyness. Costs 1h at least, and that is the time I spend on FG in a week!!

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline pepe

Junior Member




Nothing unreal exists


« Reply #6 - Posted 2004-06-11 09:08:54 »

Quote
Sure, I could. Just yet didn't out of lazyness. Costs 1h at least, and that is the time I spend on FG in a week!!

1 hour?
then, let me help you gain some time:
1  
2  
3  
4  
5  
6  
7  
8  
9  
try
{
Class.forName("javax.media.j3d.SceneGraphObject");
}
catch (Throwable t )
{
javax.swing.JOptionPane.showMessageDialog( null, "Java3D is not installed.\nPlease download and install it from\nhttp://java.sun.com/products/java-media/3D/downloads/\n then restart Flying Guns." );
system.exit(0);
}


No copyright. Wink

Home page: http://frederic.barachant.com
------------------------------------------------------
GoSub: java2D gamechmark http://frederic.barachant.com/GoSub/GoSub.jnlp
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #7 - Posted 2004-06-11 10:14:40 »

Yes.....

A SOLUTION would be to check not only Java3D but also correct JRE version, than offer a dialog that automatically redirect you to the download page(s) .... and the hour is gone...

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline pepe

Junior Member




Nothing unreal exists


« Reply #8 - Posted 2004-06-11 11:53:28 »

true, but at least, with that few lines, newbies don't simply end with 'heh. java is shit, it does not run. let's delete it and bash a lot."..
Note that the 'it does not run' might also be changed to 'it crashed', or 'it is not efficient, waited minutes, and simply killed everything because tired of waiting', bla bla bla...
See what i mean?

Home page: http://frederic.barachant.com
------------------------------------------------------
GoSub: java2D gamechmark http://frederic.barachant.com/GoSub/GoSub.jnlp
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #9 - Posted 2004-06-11 12:44:41 »

sure.

Currently, FG only adresses developers, not the common public. They SHOULD be able to deal with that.

But anyway I will improve FG in this respect in the next days....

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Herkules

Senior Member




Friendly fire isn't friendly!


« Reply #10 - Posted 2004-06-11 18:02:18 »

Ok, implemented (and deployed) a simple version check as proposed by Pepe. Thx.

BTW, there a new, very nice plane (Spad VII) sponsored by the Battlefield1918 crew Smiley


1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
      /**
       * Check wether correct versions are available.
       */

      private static void versionCheck()
      {
            //
           // 1.4.2??
           //
           String version = System.getProperty( "java.version" );
            StringTokenizer tok = new StringTokenizer( version, "._" );
           
            // Version:    1. 4. 2
           int minver =   1004002;
            int ver1 = Integer.parseInt( tok.nextToken() );
            int ver2 = Integer.parseInt( tok.nextToken() );
            int ver3 = Integer.parseInt( tok.nextToken() );
           
            int ver = ver1 * 1000000 + ver2 * 1000 + ver3;
           
            if ( ver < minver )
            {
                  JOptionPane.showMessageDialog(
                                                            null,
                                                            "The installed Java version " + version + " is too old!\nAt least 1.4.2 is required.\nPlease download and install it from:\n\n    http://java.sun.com/\n\nThen restart FlyingGuns.",
                                                            "Java configuration problem",
                                                            JOptionPane.ERROR_MESSAGE );
                  System.exit(0);                  
            }
           
            //
           // Java3D?
           //
           try
            {
                  Class c = javax.media.j3d.SceneGraphObject.class;
            }
            catch (Throwable t )
            {
                  JOptionPane.showMessageDialog(
                                                            null,
                                                            "Java3D is not installed!\nPlease download and install it from:\n\n    http://java.sun.com/products/java-media/3D/downloads/\n\nThen restart FlyingGuns.",
                                                            "Java configuration problem",
                                                            JOptionPane.ERROR_MESSAGE );
                  System.exit(0);
            }
      }

HARDCODE    --     DRTS/FlyingGuns/JPilot/JXInput  --    skype me: joerg.plewe
Offline pepe

Junior Member




Nothing unreal exists


« Reply #11 - Posted 2004-06-11 19:52:00 »

tried the new version.
1  
   StringTokenizer tok = new StringTokenizer( version, "._" ); 

should be changed to
1  
   StringTokenizer tok = new StringTokenizer( version, "._-" ); 
so that beta versions won't fail with a NumberFormatException. (just happened to me with 1.5b2. )
Anyway, the java3D test works perfectly. Great job !!
I wish everyone takes the time to do such small checks when third party libraries are needed.

Home page: http://frederic.barachant.com
------------------------------------------------------
GoSub: java2D gamechmark http://frederic.barachant.com/GoSub/GoSub.jnlp
Offline bmyers

Junior Member





« Reply #12 - Posted 2004-06-11 20:54:12 »

Thanks Pepe!! (and Herkules) -- I will include the same check for Galactic Village.  We had this very item come up with some of our recent testing.

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.

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

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

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

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

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

Riven (43 views)
2014-07-14 18:02:53

OpenGLShaders (31 views)
2014-07-14 16:23:47

Riven (30 views)
2014-07-14 11:51:35

quew8 (29 views)
2014-07-13 13:57:52

SHC (64 views)
2014-07-12 17:50:04
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!