|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.izforge.izpack.panels.jdkpath.JDKPathPanelHelper
public class JDKPathPanelHelper
| Field Summary | |
|---|---|
static String |
JDK_PATH
|
static String |
JDK_ROOT_KEY
|
static String |
JDK_VALUE_NAME
|
static String |
JDK_VAR_NAME
|
static String |
OSX_JDK_HOME
|
static String[] |
testFiles
|
| Constructor Summary | |
|---|---|
JDKPathPanelHelper()
|
|
| Method Summary | |
|---|---|
static String |
extractJavaVersion(String javaVersion)
Given a 'dirty' string representing the javaVersion. |
static String |
getCurrentJavaVersion(String path,
Platform platform)
Run the java binary from the JAVA_HOME directory specified from the user. |
static String |
getDefaultJavaPath(InstallData installData,
RegistryDefaultHandler handler)
Obtain the default java path |
static String |
getJavaHomeFromRegistry(RegistryDefaultHandler handler)
Returns the path to the needed JDK if found in the registry. |
static void |
initialize(InstallData installData)
MUST always be called in constructor of JDKPathConsolePanel and JDKPathPanel |
static boolean |
skipPanel(InstallData installData,
String path)
Check if JDK panel should be skipped. |
static String |
validate(String javaHome,
String javaVersion,
Messages messages)
Central validation of java path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] testFiles
public static final String JDK_VALUE_NAME
public static final String JDK_ROOT_KEY
public static final String OSX_JDK_HOME
public static final String JDK_PATH
public static final String JDK_VAR_NAME
| Constructor Detail |
|---|
public JDKPathPanelHelper()
| Method Detail |
|---|
public static void initialize(InstallData installData)
installData -
public static String getDefaultJavaPath(InstallData installData,
RegistryDefaultHandler handler)
installData - handler -
public static String getJavaHomeFromRegistry(RegistryDefaultHandler handler)
public static String getCurrentJavaVersion(String path,
Platform platform)
path - JAVA_HOMEplatform - specifies which platform user is running installation on
public static String extractJavaVersion(String javaVersion)
javaVersion -
public static String validate(String javaHome,
String javaVersion,
Messages messages)
javaHome - JAVA_HOME path to testjavaVersion - the java version being queriedmessages - available messages
public static boolean skipPanel(InstallData installData,
String path)
installData - path -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||