简体   繁体   English

在Eclipse中调试Java Applet jar文件

[英]Debug Java Applet jar file in eclipse

I have a compiled jar file which is a compiled applet. 我有一个已编译的jar文件,它是一个已编译的applet。 I have the parameters and name of the class with the init method to start the applet. 我具有使用init方法启动小程序的类的参数和名称。

I have installed jd-eclipse and would like to debug the applet in eclipse? 我已经安装了jd-eclipse并想在eclipse中调试applet?

It should be pretty straightforward to do. 这应该很简单。 Assuming at least Eclipse Galileo: 假设至少有Eclipse Galileo:

  • Create a project in Eclipse and add your applet jar(s) to its build path. 在Eclipse中创建一个项目,并将您的applet jar添加到其构建路径。 Alternatively you may choose to add the applet jar(s) to the build path of an existing project. 或者,您可以选择将applet jar添加到现有项目的构建路径中。
  • Right-click your project, select Run As->Run Configurations Select Java Applet in the left hand pane and click the New button at the top of the pane 右键单击您的项目,选择“运行方式”->“运行配置”,在左侧窗格中选择“ Java Applet”,然后单击窗格顶部的“新建”按钮。

Eclipse运行方式配置-Applet

  • At the top, fill out a name for the new Run configuration, then on the Main tab click to Search for your applet class. 在顶部,为新的“运行”配置填写名称,然后在“主要”选项卡上单击以搜索您的applet类。
  • On the Parameters tab, fill out all parameters from your existing Applet HTML page. 在“参数”选项卡上,填写现有Applet HTML页面中的所有参数。
  • Optionally, fill out any additional information you want the Applet to have when it runs, on the other configuration tabs (可选)在其他配置选项卡上,填写您希望小程序运行时想要的其他信息。
  • When done, click Apply, then optionally Run to fire off the test right away. 完成后,单击“应用”,然后选择“运行”以立即启动测试。

Good luck! 祝好运!

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

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