Changes between Version 36 and Version 37 of InstallNotes
- Timestamp:
- 2009-11-24T11:48:49+01:00 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified InstallNotes
v36 v37 111 111 === Using javac === 112 112 113 You can also build josm without ant or eclipse. To do so, c hange into the `src/` folder and call `javac` on the file `org/openstreetmap/josm/gui/MainApplication.java` with all libs from `../lib/*.jar` in your classpath (you have to specify all subsequent). If runninglinux, be sure to have your `JAVA_HOME` set.113 You can also build josm without ant or eclipse. To do so, call `javac` on the file `org/openstreetmap/josm/gui/MainApplication.java` with all libs from `../lib/*.jar` in your classpath (you have to specify all subsequent). If running Linux, this would look like that: 114 114 115 As example, this could look like: 115 * Choose the right version of the java compiler (1.5) 116 117 {{{ 118 $ sudo update-alternatives --config javac 119 There are 2 choices for the alternative javac (providing /usr/bin/javac). 120 121 Selection Path Priority Status 122 ------------------------------------------------------------ 123 * 0 /usr/lib/jvm/java-6-sun/bin/javac 63 auto mode 124 1 /usr/lib/jvm/java-1.5.0-sun/bin/javac 53 manual mode 125 2 /usr/lib/jvm/java-6-sun/bin/javac 63 manual mode 126 127 Press enter to keep the current choice[*], or type selection number: 1 128 update-alternatives: using /usr/lib/jvm/java-1.5.0-sun/bin/javac to provide /usr/bin/javac (javac) in manual mode. 129 $ export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun 130 }}} 131 (Alternatively you can provide the full path when running javac.) 132 * Check out the sources 133 116 134 {{{ 117 135 $ svn co http://josm.openstreetmap.de/svn/trunk josm 118 136 ''tons of output here'' 119 137 $ cd josm/ 120 $ update-alternatives --list javac121 /usr/lib/jvm/java-1.5.0-sun/bin/javac122 /usr/lib/jvm/java-6-sun/bin/javac123 $ export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun124 138 $ mkdir build 139 }}} 140 * Compile and run 141 142 {{{ 125 143 $ javac -cp .:src:lib/metadata-extractor-2.3.1-nosun.jar:lib/gettext-commons-0.9.6.jar:lib/josm-translation.jar:lib/jfcunit.jar -d build src/org/openstreetmap/josm/gui/MainApplication.java 126 144 $ java -cp .:build:lib/metadata-extractor-2.3.1-nosun.jar:lib/gettext-commons-0.9.6.jar:lib/josm-translation.jar:lib/jfcunit.jar org.openstreetmap.josm.gui.MainApplication