Export JAR to Netbeans with source code

How can I export a file with source ( ) to NetBeans? .jar.java

+5
source share
2 answers

Just:

      Right click your project   "  Properties  "   Build   "  Packaging

Make sure the filter Exclude from Jar Filedoes not contain *. Java files .
This!

Your generated jar will include the source code.

Project properties

+7
source

A JAR file is a Java archive and usually includes compiled .java files (classes) in a package-based directory format.

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

Netbeans

> a > ZIP.

netbeans .

jar Netbeans "dist" netbeans. "" (Ctrl + 2) netbeans . jar , .

. Netbeans: JAR Netbeans

0

All Articles