Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
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  
  Java Test Applet  (Read 1449 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Posted 2005-01-11 06:02:38 »

I wrote this little applet to test java version and link to http://www.java.com if appropriate. It also has an image replacement should no java at all be installed.

I know its a no brainer but if anyone would like it I'll tidy it up and hand it out.

It did start me thinking whether there was already or should be a common applet that everyone uses to get the user to download REAL java if they need it.

Kev

Offline emmaps

Junior Newbie




Java games rock!


« Reply #1 - Posted 2005-01-21 11:50:29 »

Yes i'd be interested to see how your jvm detection works.

Im currently doing it by using reflection and see if it can instanciate the class that was introduced for each new JDK release.
Offline kevglass
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #2 - Posted 2005-01-21 15:37:12 »

Ah, if you just want jvm detection use;

1  
String version = System.getProperty("java.version");


Kev

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline blahblahblahh

JGO Coder


Medals: 1


http://t-machine.org


« Reply #3 - Posted 2005-02-07 10:16:05 »

Quote
I wrote this little applet to test java version and link to http://www.java.com if appropriate. It also has an image replacement should no java at all be installed.


I'd probably like it, for JGF.

At the moment, there's a webstart checker on there, which took ages to fix all Sun's shitty bugs where they haven't bothered to update their broken javascript.

Perhaps...collaborate to make something more "complete"? IIRC the webstart checker only properly works on MSIE - I'm sure it *could* work on opera + moz, but I've not found the code snippets to do that detection on those platforms, and I *don't know javascript and DOM* Tongue.

Perhaps...a table with two boxes side-by-side; one is an applet-based check, the other a webstart-installed check.?

malloc will be first against the wall when the revolution comes...
Offline Daire Quinlan

Junior Member





« Reply #4 - Posted 2005-02-07 10:40:01 »

For a caveat as regards checjing java versions, see my post in the 'your games here' forum under 'not a game yet'. I posted some stuff up on webstart and GAGETimer was crapping out with a number format exception. Eventually i found out it was because webstart was using JRockit (which i'd installed the day before to check it out) as its JRE. JRockit was returning something CRAZEEE as the java version, which didn't do the code in GAGETimer any good because it was looking for a nicely formed 1.4.x type version string...

instead it returned this :
1  
ari-38120-20041118-1131-win-ia32


Ths probably isn't a problem of course because i wouldn't imagine many people have JRockit as a client VM, but its YET ANOTHER COMPLICATION to be aware of :-)

D.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (49 views)
2013-05-17 21:29:12

alaslipknot (58 views)
2013-05-16 21:24:48

gouessej (88 views)
2013-05-16 00:53:38

gouessej (86 views)
2013-05-16 00:17:58

theagentd (95 views)
2013-05-15 15:01:13

theagentd (88 views)
2013-05-15 15:00:54

StreetDoggy (133 views)
2013-05-14 15:56:26

kutucuk (154 views)
2013-05-12 17:10:36

kutucuk (154 views)
2013-05-12 15:36:09

UnluckyDevil (164 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.072 seconds with 20 queries.