On this page you find all important commands for the CLI tool java. If the
command you are looking for is missing please ask our AI.
java
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let programmers write once, run anywhere (WORA), meaning that compiled Java code can run on all platforms that support Java without the need to recompile.
List of commands for java:
-
games:minecraft:server:run This CLI command starts a Minecraft server using Java with a maximum and initial memory allocation of 1 GB.$ java -Xmx1024M -Xms1024M -jar minecraft_server.jar noguitry on your machineexplain this command
-
java:tldr:04439 java: Execute a `.jar` program.$ java -jar ${filename-jar}try on your machineexplain this command
-
java:tldr:36111 java: Execute a `.jar` program with debug waiting to connect on port 5005.$ java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -jar ${filename-jar}try on your machineexplain this command
-
java:tldr:488ec java: Display usage information for the java command.$ java -helptry on your machineexplain this command
-
java:tldr:5d7f6 java: Display JDK, JRE and HotSpot versions.$ java -versiontry on your machineexplain this command
-
java:tldr:82b05 java: Execute a java program and use additional third-party or user-defined classes.$ java -classpath ${path-to-classes1}:${path-to-classes2}:. ${classname}try on your machineexplain this command
-
java:tldr:966e6 java: Execute a java `.class` file that contains a main method by using just the class name.$ java ${classname}try on your machineexplain this command