Package org.svetovid.installer
Class JavaInstallation
java.lang.Object
org.svetovid.installer.JavaInstallation
- All Implemented Interfaces:
Comparable<JavaInstallation>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
int
compareTo
(JavaInstallation that) boolean
protected static SvetovidProcess
protected static SvetovidProcess
static JavaInstallation
static void
getFromAll
(Collector<JavaInstallation> collector) static void
getFromEnvironment
(Collector<JavaInstallation> collector) static void
getFromFilesystem
(Path root, Collector<JavaInstallation> installationCollector, Collector<Path> pathCollector) static void
getFromFilesystem
(Collector<JavaInstallation> installationCollector, Collector<Path> pathCollector) static JavaInstallation
getFromPath
(String path) static void
getFromPath
(Collector<JavaInstallation> collector) static void
getFromRegistry
(Collector<JavaInstallation> collector) static Path
getType()
int
hashCode()
void
void
refresh()
void
removeFile
(String path) toString()
void
-
Field Details
-
LIB_FILE_NAME
- See Also:
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<JavaInstallation>
-
toString
-
exec
-
exec
-
getLocation
-
getBinLocation
-
getLibLocation
-
getJdkVersion
-
getJreVersion
-
getLibVersion
-
getDetails
-
getType
-
getVersionType
-
refresh
public void refresh() -
addFile
- Throws:
IOException
-
addFile
- Throws:
IOException
-
removeFile
- Throws:
IOException
-
installThis
- Throws:
IOException
-
uninstall
- Throws:
IOException
-
getJarLocation
-
getDefault
-
getFromEnvironment
-
getFromPath
-
getFromRegistry
-
getFromFilesystem
public static void getFromFilesystem(Collector<JavaInstallation> installationCollector, Collector<Path> pathCollector) -
getFromFilesystem
public static void getFromFilesystem(Path root, Collector<JavaInstallation> installationCollector, Collector<Path> pathCollector) -
getFromPath
-
getFromAll
-