The Artima Developer Community
Sponsored Link

Java Buzz Forum
Try Out The Java Platform Detection Code

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Weiqi Gao

Posts: 1808
Nickname: weiqigao
Registered: Jun, 2003

Weiqi Gao is a Java programmer.
Try Out The Java Platform Detection Code Posted: Apr 17, 2008 7:30 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Weiqi Gao.
Original Post: Try Out The Java Platform Detection Code
Feed Title: Weiqi Gao's Weblog
Feed URL: http://www.weiqigao.com/blog/rss.xml
Feed Description: Sharing My Experience...
Latest Java Buzz Posts
Latest Java Buzz Posts by Weiqi Gao
Latest Posts From Weiqi Gao's Weblog

Advertisement
David Herron: Recently we made Java SE 6 update 10 available for beta testing. Beta testing is a period in product release cycles where testing is taken to people outside the product team, and those "external" testers bang on it with their applications and let the product team know what's wrong (or not).

I find the following snippet Java platform detection code interesting:

<script src="http://java.com/js/deployJava.js"></script>
<script language="JavaScript">function detectJRE() {
  var list = deployJava.getJREs();
  var result = "";

  if (list.length == 0) {
    alert ('No Detectable Java Platforms are Installed');
  } else {
    result = list[0];
    for (var i=1; i < list.length; i++) {
      result += ", " + list[i];
    }
    alert("You have the following Java Platform(s) installed: \n" + result);
  }
}</script>

And you can try it out here:

Unfortunately, here's what I get on my home computer:

"No

This is on a Debian GNU/Linux amd64 4.0 platform. We haven't had the Java plugin or Java Web Start for quite some time now. It looks like we'll get the plugin in early 2009, according to Bug ID: 4802695.

Read: Try Out The Java Platform Detection Code

Topic: Linux Images with VMWare tools installed Previous Topic   Next Topic Topic: links for 2008-04-11 from PeopleOverProcess.com

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use