Changes between Version 4 and Version 5 of JorisLog/2010/12/06


Ignore:
Timestamp:
2010-12-06T13:04:42+01:00 (14 years ago)
Author:
jlops
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • JorisLog/2010/12/06

    v4 v5  
    1 Making a jar file:
     1Making 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.
    22
    3  * make an ant script that creates an jar
     3To 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
     5Solution:
     6
     7 * make an ant script that creates a jar (see attachment)
     8 *  * execute: ant -f buildJar.xml jar
    49 * to start a program, execute the following command:
    5    * java -cp !jarfile.jar:lib javamainfunctionclass
     10   * java -cp !jarfile.jar:lib javamainfunctionclass
    611   * for example:
    712     * java -cp molgenis_!distro.jar:lib handwritten.importers.Start