Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (536)
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 1649 times)
0 Members and 1 Guest are viewing this topic.
Offline kevglass

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« 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

JGO Kernel


Medals: 122
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


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

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (18 views)
2014-07-30 21:08:39

Riven (23 views)
2014-07-29 18:09:19

Riven (15 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (33 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (43 views)
2014-07-24 01:59:36

Riven (43 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

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