From MCIS Wiki

Jump to: navigation, search

CIS 190: Intro to Programming



How to package your Netbeans project into one jar

insert the following into your build.xml:

<target name="-post-jar">
        <jar jarfile="dist/YourNameHere.jar">
            <zipfileset src="${dist.jar}" excludes="META-INF/*" />
            <zipfileset src="./acm.jar" excludes="META-INF/*" />
                <attribute name="Main-Class" value="YourPackageHere.Main"/>

where YourNameHere is the name of your output file you want and YourPackageHere is the package name that your main class is in.

Personal tools