NetBeans.jar
でソース( ) を含むファイルをエクスポートするにはどうすればよいですか?.java
2 に答える
次のように簡単です:
Right click your project
» Properties
» Build
» フィルタに*.java ファイルが含まれていない Packaging
ことを確認します。
それでおしまい!
生成された jar にはソース コードが含まれます。Exclude from Jar File
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