Changes between Version 18 and Version 19 of InstallNotes


Ignore:
Timestamp:
2008-08-06T20:16:43+02:00 (17 years ago)
Author:
avarab@…
Comment:

tell people to compile it using ant as the primary advice, most java programs are built this way and it should be painless on all systems

Legend:

Unmodified
Added
Removed
Modified
  • InstallNotes

    v18 v19  
    1717
    1818== Compiling ==
    19 To build the source the easiest way, use eclipse and the provided `.project` and `.classpath` file. Just add a new Java Project using the JOSM source folder as existing path.
     19=== Using ant ===
     20The easiest way to compile JOSM provided Java on your machine is properly set up is to go to the josm directory and type:
    2021
    21 You can also build it without eclipse. To do so, change into the `src/` folder and call `javac` on the file `org/openstreetmap/josm/Main` with all libs from `../lib/*.jar` in your classpath (you have to specify all subsequent). If running linux, be sure to have your `JAVA_HOME` set.
     22{{{
     23 ant
     24}}}
     25
     26That will create a `dist/josm-custom.jar` file if successful.
     27
     28=== Using eclipse ===
     29
     30Use eclipse and the provided `.project` and `.classpath` file. Just add a new Java Project using the JOSM source folder as existing path.
     31
     32=== Using javac ===
     33
     34You can also build josm without ant or eclipse. To do so, change into the `src/` folder and call `javac` on the file `org/openstreetmap/josm/Main` with all libs from `../lib/*.jar` in your classpath (you have to specify all subsequent). If running linux, be sure to have your `JAVA_HOME` set.
    2235
    2336As example, this could look like:
     
    3043 $ javac -cp .:../lib/MinML2.jar:../lib/metadata-extractor-2.3.1.jar:../lib/gettext-common-0.9.jar org/openstreetmap/josm/gui/MainApplication.java
    3144}}}
    32 
    33 === Compiling with ant ===
    34 Much more comfortable is it to use "ant".[[BR]]
    35 First of all you have to set your JAVA_HOME. Than change into the src folder and just type "ant".[[BR]]
    36 This will compile JOSM automatically and a "josm_custom.jar" can be found under "/dist"
    37 
    3845
    3946== Running ==