How 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

Sizin İçin Seçtik  Thodex nasıl kapandı?

Leave a Reply

Your email address will not be published. Required fields are marked *