Java

Commands

Compile & Run

# compile
$ javac HelloWorld.java

# run
$ java HelloWorld

It provides software for working with Java applications. Examples of included software are:

  • the virtual machine
  • a compiler
  • performance monitoring tools
  • a debugger

run the binary /usr/libexec/java_home to know where in the system Java is installed

Commands

List Java versions installed

  • $ /usr/libexec/java_home -V

Resources

  • VisualVM
    • provides a visual interface for viewing detailed info about a Java application as it is running in the JVM

Children
  1. JS Equivalents
  2. Java Environment
  3. Jenv
  4. Object
  5. Types
  6. Variables