Personal tools

Ace:Webstart Client: Difference between revisions

From Adapt

Jump to: navigation, search
No edit summary
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<SCRIPT LANGUAGE="JavaScript">
The java webstart client will let you monitor files on your desktop.  
var javawsInstalled = 0; 
var javaws142Installed=0;
var javaws150Installed=0;
var javaws160Installed = 0;
isIE = "false";
if (navigator.mimeTypes && navigator.mimeTypes.length) {
  x = navigator.mimeTypes['application/x-java-jnlp-file'];
  if (x) {
      javawsInstalled = 1;
      javaws142Installed=1;
      javaws150Installed=1;
      javaws160Installed = 1;
  }
}
else {
  isIE = "true";
}
</SCRIPT>
<SCRIPT LANGUAGE="VBScript">
on error resume next
If isIE = "true" Then
  If Not(IsObject(CreateObject("JavaWebStart.isInstalled"))) Then
    javawsInstalled = 0
  Else
    javawsInstalled = 1
  End If
  If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.4.2.0"))) Then
    javaws142Installed = 0
  Else
    javaws142Installed = 1
  End If
  If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.5.0.0"))) Then
    javaws150Installed = 0
  Else
    javaws150Installed = 1
  End If 
  If Not(IsObject(CreateObject("JavaWebStart.isInstalled.1.6.0.0"))) Then
    javaws160Installed = 0
  Else
    javaws160Installed = 1
  End If 
End If
</SCRIPT>


Requirements:
* Java 1.6 or higher http://java.sun.com/javase/downloads/index.jsp


<script language="JavaScript">
Once you have Java 1.6 installed, click the following link to start the client
/* Note that the logic below always launches the JNLP application
[http://narademo.umiacs.umd.edu/ace-client/launch.jnlp Launch Client]
*if the browser is Gecko based. This is because it is not possible
 
*to detect MIME type application/x-java-jnlp-file on Gecko-based browsers.
For more information on ACE please visit [[Ace:Main]]
*/
 
if (javawsInstalled || (navigator.userAgent.indexOf("Gecko") !=-1)) {
[[Image:Ace-main-client.png]]
    document.write("<a href=http://www.MySite.com/app.jnlp>Launch  
        the application</a>");
} else {
    document.write("Click ");
    document.write("<a href=http://java.sun.com/PluginBrowserCheck?
        pass=http://www.MySite.com/download.html&
        fail=http://java.sun.com/javase/downloads/ea.jsp>here</a> ");
    document.write("to download and install JRE 5.0 and
        the application.");
}
</SCRIPT>

Latest revision as of 19:03, 17 October 2008

The java webstart client will let you monitor files on your desktop.

Requirements:

Once you have Java 1.6 installed, click the following link to start the client Launch Client

For more information on ACE please visit Ace:Main

Ace-main-client.png