utils
Class JDKBean

java.lang.Object
  extended by utils.JDKBean
All Implemented Interfaces:
java.io.Serializable

public final class JDKBean
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Method Summary
static java.io.File getJarPath()
           
static java.io.File getJarSignerPath()
          This works on windows, linux and the mac.
static java.io.File getJavacCommand()
           
static java.lang.String getJreHome()
           
static java.io.File getRmicPath()
          This works on windows, linux and the mac.
static java.lang.String getSdkHome()
           
static java.lang.String getTmpDir()
           
static void main(java.lang.String[] args)
           
static JDKBean restore()
           
 void save()
           
 void setJreHome(java.io.File f)
           
static void testGetPath()
           
static void testJarSigner()
           
static void testJavaCommand()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

save

public void save()

restore

public static JDKBean restore()

getJreHome

public static java.lang.String getJreHome()

getSdkHome

public static java.lang.String getSdkHome()

getJavacCommand

public static java.io.File getJavacCommand()
Returns:
the location of the javac command.

getJarSignerPath

public static java.io.File getJarSignerPath()
This works on windows, linux and the mac. It has not been tested on all platforms!

Returns:
a file that references the jarsigner command

getJarPath

public static java.io.File getJarPath()

testGetPath

public static void testGetPath()

getRmicPath

public static java.io.File getRmicPath()
This works on windows, linux and the mac. It has not been tested on all platforms!

Returns:
location of the rmic compiler.

testJarSigner

public static void testJarSigner()

getTmpDir

public static java.lang.String getTmpDir()

testJavaCommand

public static void testJavaCommand()

main

public static void main(java.lang.String[] args)

setJreHome

public void setJreHome(java.io.File f)