7

NetBeans.jarでソース( ) を含むファイルをエクスポートするにはどうすればよいですか?.java

4

2 に答える 2

9

次のように簡単です:

      Right click your project  »   Properties  »   Build  »  フィルタに*.java ファイルが含まれていない Packaging

ことを確認します。 それでおしまい! 生成された jar にはソース コードが含まれます。Exclude from Jar File



プロジェクトのプロパティ

于 2014-02-15T14:36:44.333 に答える
1

A JAR file is a Java Archive, and generally includes compiled .java files (classes) into a directory format based on packages.

Generally, you would want to provide your .java files (java source code) in a format other than a jar.

Netbeans provides the ability to export a Project from

File > Export Project > To ZIP.

This will export the netbeans project along with any source code.

By default, The jar file is generated when you build your project in Netbeans and can be found in your "dist" directory inside your netbeans project. The "Files" tab (Ctrl + 2) in netbeans shows you your project files. You can right click on the jar file and find it's exact location on your computer by selecting properties.

See this question for more information on exporting a jar from Netbeans: Export JAR with Netbeans

于 2013-05-10T22:47:30.683 に答える