Packages

object JavaRuntime

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JavaRuntime
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. def current: JavaRuntime

    Detects the runtime of the running JDK instance.

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  10. def getJavaVersionFromJavaHome(javaHome: AbsolutePath): Option[String]
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. val home: AbsolutePath
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def javaCompiler: Option[JavaCompiler]
  15. val javac: Option[AbsolutePath]
  16. def javacBinaryFromJavaHome(home: AbsolutePath): Option[AbsolutePath]

    Points to the javac binary location.

    Points to the javac binary location.

    The javac binary can be derived from javaHome. However, the home might point to different places in different operating systems. For example, in Linux it can point to the home of the runtime instead of the full java home. It's possible that bin/javac doesn't exist in the runtime home, but instead in the full home where the JDK installation was done. Therefore, if we don't find javac in the usual location, we go to the parent of java home and attempt the search again. If nothin works, we just return None and let the caller of this function handle this case appropriately.

  17. lazy val loadJavaDebugInterface: Try[Unit]

    Loads the java debug interface once.

    Loads the java debug interface once.

    The Java Debug Interface is implemented in Java < 9 in an auxiliary jar called tools.jar. The tools jar is only accessible in JDKs but it's not loaded by default (users need to load it manually when they initialize an application that requires it by setting up the classpath).

    To avoid our users from doing such a thing, we instead try to load the JDI by finding the tools.jar dynamically on the java home of a JDK and then side-effecting on the system classloader to attempt to load it.

    We only do this once and cache its result so that all debug clients know whether debugging is supported or not in this bloop server instance.

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. val version: String
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. case object JDK extends JavaRuntime with Product with Serializable
  28. case object JRE extends JavaRuntime with Product with Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped