From 057a5c52fabe67213f1e3490d1fb80ccfd76fdfc Mon Sep 17 00:00:00 2001 From: Erik Weibust Date: Mon, 1 Nov 2021 12:25:32 -0500 Subject: [PATCH] java: add classpath example and update link (#7358) --- pages/common/java.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/common/java.md b/pages/common/java.md index 293809ed3..b056c5cf6 100644 --- a/pages/common/java.md +++ b/pages/common/java.md @@ -1,12 +1,16 @@ # java > Java Application Launcher. -> More information: . +> More information: . - Execute a java `.class` file that contains a main method by using just the class name: `java {{classname}}` +- Execute a java program and use additional third-party or user-defined classes: + +`java -classpath {{path/to/classes1}}:{{path/to/classes2}}:. {{classname}}` + - Execute a `.jar` program: `java -jar {{filename.jar}}`