简体   繁体   English

在html中运行Java Applet,主类为X.jar / s / main.class

[英]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. 如果主类位于jar文件内的文件夹中,那么我如何运行小程序。

X.jar contains : S (folder) main class in it META-INF (folder) MANIFEST.MF in it X.jar在其中包含:S(文件夹)主类META-INF(文件夹)MANIFEST.MF

thanks 谢谢

If it is an executable jar then you can run it on command line like this: 如果它是一个可执行的jar,则可以在命令行上运行它,如下所示:

java -jar X.jar

For normal jar try this: 对于普通罐子,请尝试以下操作:

java -cp pathtoX.Jar YourMainClass

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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