9 lines
209 B
Go
9 lines
209 B
Go
package util
|
|
|
|
func LocateJavaHome(component string, majorVersion int) (string, error) {
|
|
if component == "jre-legacy" {
|
|
return "/usr/lib/jvm/java-8-openjdk/jre", nil
|
|
}
|
|
return "/usr/lib/jvm/default", nil
|
|
}
|