Changes between Version 36 and Version 37 of InstallNotes


Ignore:
Timestamp:
2009-11-24T11:48:49+01:00 (16 years ago)
Author:
bastiK
Comment:

further cleanup

Legend:

Unmodified
Added
Removed
Modified
  • TabularUnified InstallNotes

    v36 v37  
    111111=== Using javac ===
    112112
    113 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/gui/MainApplication.java` 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.
     113You 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:
    114114
    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
    116134{{{
    117135$ svn co http://josm.openstreetmap.de/svn/trunk josm
    118136        ''tons of output here''
    119137$ cd josm/
    120 $ update-alternatives --list javac
    121         /usr/lib/jvm/java-1.5.0-sun/bin/javac
    122         /usr/lib/jvm/java-6-sun/bin/javac
    123 $ export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
    124138$ mkdir build
     139}}}
     140 * Compile and run
     141
     142{{{
    125143$ 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
    126144$ 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