Timeline for Run jar with dependencies from the command line
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 5 at 10:02 | comment | added | Nab | My bad, as I am running this on windows, the correct command is : java -cp "MyJar.jar;lib*" com.somepackage.subpackage.Main | |
Feb 5 at 7:03 | comment | added | ernest_k | @Nab Are you typing the fully qualified class name (with packages)? The only other reason would be that the class is not in the jar. | |
Feb 1 at 18:33 | comment | added | Nab | I try this but I get an error : "Could not find or load main class" How can java find the main class name in the right package ? | |
Mar 3, 2022 at 14:09 | comment | added | ernest_k | Yes, it does, @ThomasStokes | |
Mar 3, 2022 at 14:08 | comment | added | Thomas Stokes | Does the colon need to be a semicolon on windows? | |
Oct 27, 2018 at 19:27 | vote | accept | user149408 | ||
Oct 27, 2018 at 18:54 | history | answered | ernest_k | CC BY-SA 4.0 |