mccl/pkg/util/locatejavahome_unix.go

12 lines
241 B
Go
Raw Permalink Normal View History

//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
}