Changes between Version 18 and Version 19 of InstallNotes
- Timestamp:
- 2008-08-06T20:16:43+02:00 (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallNotes
v18 v19 17 17 18 18 == 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 === 20 The easiest way to compile JOSM provided Java on your machine is properly set up is to go to the josm directory and type: 20 21 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 26 That will create a `dist/josm-custom.jar` file if successful. 27 28 === Using eclipse === 29 30 Use 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 34 You 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. 22 35 23 36 As example, this could look like: … … 30 43 $ javac -cp .:../lib/MinML2.jar:../lib/metadata-extractor-2.3.1.jar:../lib/gettext-common-0.9.jar org/openstreetmap/josm/gui/MainApplication.java 31 44 }}} 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 38 45 39 46 == Running ==
