net.rmi.rjs.pk.LusCs
Class WebStartLauncher

java.lang.Object
  extended by net.rmi.rjs.pk.LusCs.WebStartLauncher

public final class WebStartLauncher
extends java.lang.Object


Method Summary
static java.io.File getWebstartLocation()
          Search for the Java web start application.
static java.io.File startWebstartAndWaitForAnswer(java.lang.String webStartUrl)
          Start web start on the given url, then kill the process, to showAndRegister we have control over stopping and starting a process.
static java.io.File waitForAnswer(java.io.File answerDir)
          Waits for the answer jar to arrive
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

startWebstartAndWaitForAnswer

public static final java.io.File startWebstartAndWaitForAnswer(java.lang.String webStartUrl)
Start web start on the given url, then kill the process, to showAndRegister we have control over stopping and starting a process. You must call exit in your web start application or this code will NEVER FINISH. The Correct way to do this is to monitor a directory that contains the output and upload it after it is done writing.

Parameters:
webStartUrl - URL of the jnlp job file
Returns:
answer jar

waitForAnswer

public static final java.io.File waitForAnswer(java.io.File answerDir)
Waits for the answer jar to arrive

Parameters:
answerDir -
Returns:
answer jar

getWebstartLocation

public static final java.io.File getWebstartLocation()
Search for the Java web start application. If you cannot find it, prompt the user. In the future, there should be a better way to do this, but what, I don't know. And what if javaws cannot be found because it is not installed? Tricky!

Returns:
the java webstart file