0% found this document useful (0 votes)
66 views1 page

Java Project Build Output Guide

When building a Java application project with a main class, the IDE copies all JAR files on the classpath to the dist/lib folder and adds each JAR to the Class-Path element in the MANIFEST.MF file. To run the project from the command line, go to the dist folder and run "java -jar generacionInscricpion.jar". The dist folder, including the lib folder, should be zipped up and distributed.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views1 page

Java Project Build Output Guide

When building a Java application project with a main class, the IDE copies all JAR files on the classpath to the dist/lib folder and adds each JAR to the Class-Path element in the MANIFEST.MF file. To run the project from the command line, go to the dist folder and run "java -jar generacionInscricpion.jar". The dist folder, including the lib folder, should be zipped up and distributed.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

======================== BUILD OUTPUT DESCRIPTION ======================== When you build an Java application project that has a main class,

the IDE automatically copies all of the JAR files on the projects classpath to your projects dist/lib folder. The IDE also adds each of the JAR files to the Class-Path element in the application JAR files manifest file (MANIFEST.MF). To run the project from the command line, go to the dist folder and type the following: java -jar "generacionInscricpion.jar" To distribute this project, zip up the dist folder (including the lib folder) and distribute the ZIP file. Notes: * If two JAR files on the project classpath have the same name, only the first JAR file is copied to the lib folder. * Only JAR files are copied to the lib folder. If the classpath contains other types of files or folders, none of the classpath elements are copied to the lib folder. In such a case, you need to copy the classpath elements to the lib folder manually after the bui ld. * If a library on the projects classpath also has a Class-Path element specified in the manifest,the content of the Class-Path element has to be on the projects runtime path. * To set a main class in a standard Java project, right-click the project node in the Projects window and choose Properties. Then click Run and enter the class name in the Main Class field. Alternatively, you can manually type the class name in the manifest Main-Class element.

You might also like