English 中文(简体)
• 如何将来源和类别档案转换成一个可执行的工具?
原标题:How to convert source and class files into 1 executable for an applet?

我完成了一个朋友项目——“ave子”。 为了管理该项目,我只是点击了在单片面上的Run Application。 我如何把我的项目转换成1个档案,这样我的朋友就可以简单地打开一个档案,而该手册将开始吗?

最佳回答

仅出口贵项目,要么直接出口,要么直接出口,要么使用像安特这样的东西。

之后,你的朋友们刚刚将以下法典放到他们自己的家中......

<applet code="yourMainClass.class" archive="yourArchive.jar" codebase="yourCodebase/">
问题回答

为了重申,你在Eclipse使用“出口 w”制作了一份口头档案。 Press, File menu 然后, 出口分门槛值,然后遵循指示:

  • Select Jar them Next
  • Select the needed files and resources, create a Jar file name, then press Next
  • Select options, then Next
  • Select a main class -- I know this is important for a desktop application, but I m not sure if it s needed for applets.

The easiest way is to use eclipse export option. Go to File->Export->Java (from list) -> Runnable JAR File (if you dont have it use JAR File instead)->Choose the project you want -> Choose Destination folder -> Finish.

在你选择的夹中,将是一个.。





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...