0
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
1 ========================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
2 BUILD OUTPUT DESCRIPTION
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
3 ========================
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
4
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
5 When you build an Java application project that has a main class, the IDE
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
6 automatically copies all of the JAR
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
7 files on the projects classpath to your projects dist/lib folder. The IDE
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
8 also adds each of the JAR files to the Class-Path element in the application
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
9 JAR files manifest file (MANIFEST.MF).
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
10
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
11 To run the project from the command line, go to the dist folder and
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
12 type the following:
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
13
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
14 java -jar "PlistTable.jar"
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
15
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
16 To distribute this project, zip up the dist folder (including the lib folder)
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
17 and distribute the ZIP file.
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
18
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
19 Notes:
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
20
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
21 * If two JAR files on the project classpath have the same name, only the first
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
22 JAR file is copied to the lib folder.
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
23 * Only JAR files are copied to the lib folder.
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
24 If the classpath contains other types of files or folders, none of the
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
25 classpath elements are copied to the lib folder. In such a case,
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
26 you need to copy the classpath elements to the lib folder manually after the build.
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
27 * If a library on the projects classpath also has a Class-Path element
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
28 specified in the manifest,the content of the Class-Path element has to be on
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
29 the projects runtime path.
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
30 * To set a main class in a standard Java project, right-click the project node
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
31 in the Projects window and choose Properties. Then click Run and enter the
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
32 class name in the Main Class field. Alternatively, you can manually type the
|
Daniele Nicolodi <nicolodi@science.unitn.it>
parents:
diff
changeset
|
33 class name in the manifest Main-Class element.
|