JavaEnvironment class
Resolves and manages Java runtime environments for Kotlin compilation
Handles Java version detection, switching, and installation using system version managers (SDKMAN!, asdf, winget)
Constructors
- JavaEnvironment({bool verbose = false})
- Resolves and manages Java runtime environments for Kotlin compilation
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolveJavaEnvironment(
String? requiredVersion, {bool autoInstall = true}) → Future< Map< String, String> ?> - Resolve Java environment for a specific version requirement
-
toString(
) → String -
A string representation of this object.
inherited
-
validateJavaInstallation(
String javaHome) → Future< bool> - Validate that a Java installation is working
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited