Show activity on this post.
Read moreHow do you mention main class in manifest file?
It is simple.
Read moreHow do I run a java main class from the command line?
How to run a java program
Read moreHow do I run a JAR file in main class?
To run an application in a nonexecutable JAR file, we have to use -cp option instead of -jar. We’ll use the -cp option (short for classpath) to specify the JAR file that contains the class file we want to execute: java -cp jar-file-name main-class-name [args …] 4 Şub 2022
Read moreHow do I run a java JAR file?
jar, follow these rules:
Read moreHow do I run a JAR file with CP?
5 Answers
Read more