Changes between Version 34 and Version 35 of InstallNotes


Ignore:
Timestamp:
2009-11-24T11:26:47+01:00 (15 years ago)
Author:
bastiK
Comment:

updated build instructions

Legend:

Unmodified
Added
Removed
Modified
  • InstallNotes

    v34 v35  
    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/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.
     113You 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.
    114114
    115115As example, this could look like:
    116116{{{
    117  $ cd ~/src
    118  $ svn co http://josm.openstreetmap.de/svn josm
    119  ''tons of output here''
    120  $ export JAVA_HOME=/usr/local/jdk1.5.0
    121  $ cd josm/src
    122  $ javac -cp .:../lib/MinML2.jar:../lib/metadata-extractor-2.3.1.jar:../lib/gettext-common-0.9.jar org/openstreetmap/josm/gui/MainApplication.java
     117$ svn co http://josm.openstreetmap.de/svn/trunk josm
     118        ''tons of output here''
     119$ 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
     124$ mkdir build
     125$ 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$ 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
    123127}}}