Changes between Version 4 and Version 5 of JorisLog/2010/12/06
- Timestamp:
- 2010-12-06T13:04:42+01:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JorisLog/2010/12/06
v4 v5 1 Making a jar file :1 Making a jar file from a project instead of a war. The problem with a war file is that it's not allowed to execute main functions. 2 2 3 * make an ant script that creates an jar 3 To solve that problem one has to make a jar instead, but what if you're project in your favorite IDE already creates a war. 4 5 Solution: 6 7 * make an ant script that creates a jar (see attachment) 8 * * execute: ant -f buildJar.xml jar 4 9 * to start a program, execute the following command: 5 * java -cp !jarfile.jar:lib 10 * java -cp !jarfile.jar:lib javamainfunctionclass 6 11 * for example: 7 12 * java -cp molgenis_!distro.jar:lib handwritten.importers.Start