java Command Examples

Java application launcher. More information: https://docs.oracle.com/en/java/javase/20/docs/specs/man/java.html.

java {{classname}}

java -classpath {{path/to/classes1}}:{{path/to/classes2}}:. {{classname}}

java -jar {{filename.jar}}

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -jar {{filename.jar}}

java -version

java -help