简体   繁体   English

小程序的Eclipse启动配置空白问题

[英]Eclipse Launch Configuration Blank Issue for Applet

I have a dynamic web project that I've created with Maven in Eclipse Kepler. 我有一个动态Web项目,该项目是使用Eclipse Kepler中的Maven创建的。 I need to use an applet in my web application. 我需要在Web应用程序中使用小程序。 But, deploying applet with web content in Eclipse is problem, actually Eclipse deploys applet files to web-inf files but we can not access Web-Inf files directly in web application. 但是,在Eclipse中用Web内容部署applet是有问题的,实际上Eclipse会将applet文件部署到web-inf文件中,但是我们不能直接在Web应用程序中访问Web-Inf文件。 For that reason, I exported that applet to my WebContent folder. 因此,我将该小程序导出到WebContent文件夹中。 If I don't use external classes in applet, there is no error. 如果我在applet中不使用外部类,则没有错误。 I mean, if I do not import any external classes, there will not be any problem. 我的意思是,如果不导入任何外部类,就不会有任何问题。

But I need to import some other java classes. 但是我需要导入其他一些Java类。 When I export applet to jar, other java classes that applet needs are not exist in the jar. 当我将applet导出到jar时,jar中不存在applet需要的其他Java类。 I figured out that if I export applet to runnable jar, other classes will be exist in jar package. 我发现如果将applet导出到可运行的jar中,则jar包中将存在其他类。

In Eclipse, I can not export applet to runnable. 在Eclipse中,我无法将applet导出为可运行的。 There is configuration in run configuration, under Applet tab, I can run it in Eclipse. 运行配置中有配置,在Applet选项卡下,我可以在Eclipse中运行它。 But when I export it to runnable jar, launch configuration is always blank. 但是,当我将其导出到可运行的jar时,启动配置始终为空。 I deleted my configurations, everything is same. 我删除了配置,一切都一样。

Here is my configurations : 这是我的配置:

在导出中启动配置运行配置

Applet is not an executable jar-file. Applet不是可执行的jar文件。 Use export to JAR file. 使用导出到JAR文件。 And add your manifest. 并添加清单。

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

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