Skip to content

Instantly share code, notes, and snippets.

@Sciss
Created November 3, 2015 22:32
Show Gist options
  • Select an option

  • Save Sciss/fcf970ab6a55ca1b34da to your computer and use it in GitHub Desktop.

Select an option

Save Sciss/fcf970ab6a55ca1b34da to your computer and use it in GitHub Desktop.
def vmVersion(): String = {
val name = sys.props.getOrElse("java.vm.name" , "???")
val version = sys.props.getOrElse("java.vm.version", "???")
val info = sys.props.getOrElse("java.vm.info" , "???")
s"$name (build $version, $info)"
}
def jreVersion(): String = {
val name = sys.props.getOrElse("java.runtime.name" , "???")
val version = sys.props.getOrElse("java.runtime.version", "???")
s"$name (build $version)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment