12 lines
241 B
Go
12 lines
241 B
Go
//go:build unix
|
|
// +build unix
|
|
|
|
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
|
|
}
|