简体   繁体   中英

Run Java Applet in html, Main class is X.jar/s/main.class

How i can run the applet if the main class is inside a folder inside the jar file.

X.jar contains : S (folder) main class in it META-INF (folder) MANIFEST.MF in it

thanks

If it is an executable jar then you can run it on command line like this:

java -jar X.jar

For normal jar try this:

java -cp pathtoX.Jar YourMainClass

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM