[4600] | 1 | Supplemental information for JOSM -- the Java OpenStreetMap Editor
|
---|
[14] | 2 |
|
---|
[5341] | 3 | =============================================================================
|
---|
| 4 | I. Install & Launch
|
---|
| 5 | =============================================================================
|
---|
[5545] | 6 |
|
---|
[4600] | 7 | Installation notes
|
---|
| 8 | ------------------
|
---|
[14] | 9 | To run JOSM, you need:
|
---|
| 10 |
|
---|
[4600] | 11 | * The JOSM .jar file, e.g., josm-tested.jar or josm-latest.jar
|
---|
[7001] | 12 | * Java Runtime Environment (JRE) 7, or later.
|
---|
[14] | 13 |
|
---|
| 14 |
|
---|
[4600] | 15 | How to get Java Runtime Environment
|
---|
| 16 | -----------------------------------
|
---|
[7001] | 17 | You need JRE Version 7, or later.
|
---|
[14] | 18 |
|
---|
[6216] | 19 | Microsoft Windows and Apple Mac OS X users should visit http://www.java.com
|
---|
| 20 | and download the latest Java executable for their system.
|
---|
[14] | 21 |
|
---|
[4600] | 22 | Linux users should visit http://www.oracle.com/technetwork/java/index.html
|
---|
[5545] | 23 | There is a Linux binary installer, which you must execute from a console, or
|
---|
[4600] | 24 | use the mechanism of your distribution's packaging system.
|
---|
[14] | 25 |
|
---|
| 26 |
|
---|
| 27 | How to launch
|
---|
| 28 | -------------
|
---|
[4600] | 29 | Microsoft Windows users launch by double-clicking on the .jar file.
|
---|
| 30 | If this does not work, open a command shell and type
|
---|
| 31 | "java -jar josm-latest.jar" in the directory that holds the file. (Please
|
---|
| 32 | replace josm-latest.jar with the name of your .jar file, if you aren't using
|
---|
| 33 | the latest version.)
|
---|
[14] | 34 |
|
---|
[4600] | 35 | Under Linux, open a shell, go to the file directory and type
|
---|
| 36 | "java -jar josm-latest.jar" to launch. If this does not work, try to set
|
---|
[5545] | 37 | your JAVA_HOME variable to the java executable location (the root location,
|
---|
[4600] | 38 | not the bin).
|
---|
[14] | 39 |
|
---|
[5493] | 40 | MacOS X users just click on the .jar file icon.
|
---|
[14] | 41 |
|
---|
[5341] | 42 | =============================================================================
|
---|
| 43 | II. Development
|
---|
| 44 | =============================================================================
|
---|
[14] | 45 |
|
---|
[4600] | 46 | How to get the source code
|
---|
| 47 | --------------------------
|
---|
[5545] | 48 | Download it directly from the subversion at
|
---|
| 49 | https://josm.openstreetmap.de/svn/trunk. To use the command line subversion
|
---|
[4600] | 50 | client, type
|
---|
[14] | 51 |
|
---|
[5341] | 52 | svn co https://josm.openstreetmap.de/svn/trunk josm
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | Files & directories
|
---|
| 56 | -------------------
|
---|
| 57 | This is an overview of the files and directories in the JOSM code repository:
|
---|
| 58 | - build.xml ant build file (standard way to create a JOSM binary)
|
---|
| 59 | - CONTRIBUTION list of major code contributors
|
---|
| 60 | - data/ data files that will be included in the JOSM jar file
|
---|
| 61 | - *.gsb NTv2 grid files for projection support
|
---|
| 62 | - *.lang translation data
|
---|
| 63 | - *.xsd xml schema files for validation of configuration files
|
---|
| 64 | - epsg list of projection definitions
|
---|
[5545] | 65 | - help-browser.css CSS file for the help sites (HTML content is downloaded from the website
|
---|
[5341] | 66 | on demand, but displayed inside the programm in a Java web browser component.)
|
---|
| 67 | - ignoretags.cfg, tagchecker.cfg
|
---|
| 68 | data files used by the JOSM validator feature
|
---|
| 69 | - data_nodist/ data files that are useful for development, but not distributed
|
---|
[5545] | 70 | - exif-direction-example.jpg
|
---|
[5341] | 71 | sample image, that contains direction information in the EXIF header
|
---|
| 72 | (keys: Exif.GPSInfo.GPSImgDirectionRef, Exif.GPSInfo.GPSImgDirection)
|
---|
| 73 | - filterTests.osm used for unit testing of the filter feature
|
---|
| 74 | (see test/unit/org/openstreetmap/josm/data/osm/FilterTest.java)
|
---|
| 75 | - Join_Areas_Tests.osm some examples to test the 'join areas' feature
|
---|
| 76 | - mapcss/ sample map styles and corresponding data files for regression testing
|
---|
[5545] | 77 | - projection-reference-data.csv
|
---|
[5341] | 78 | reference data for projection tests
|
---|
| 79 | (see test/unit/org/openstreetmap/josm/data/projection/ProjectionRefTest.java)
|
---|
[5545] | 80 | - projection-regression-test-data.csv
|
---|
[5341] | 81 | regression data for projection tests
|
---|
| 82 | (see test/unit/org/openstreetmap/josm/data/projection/ProjectionRegressionTest.java)
|
---|
| 83 | - geticons.pl tool, to find all used icons and allows deleting unused icons
|
---|
| 84 | - gpl-2.0.txt, gpl-3.0.txt full text of the GNU General Public License
|
---|
| 85 | - images/ images distributed with the JOSM binary
|
---|
| 86 | - icons images for the Potlatch 2 style
|
---|
| 87 | - styles/standard images for the main map style (external repository)
|
---|
[5545] | 88 | - images_nodist/ images, which are not for distribution, but may be useful later (e.g. high
|
---|
[5341] | 89 | resolution and vector versions)
|
---|
| 90 | - josm.jnlp Java Web Start launcher file (used on the website)
|
---|
| 91 | - lib/ libraries (directory is empty at the moment)
|
---|
| 92 | - LICENSE the JOSM license terms
|
---|
| 93 | - macosx/ files needed to create the MacOS package
|
---|
| 94 | - netbeans/ preconfigured Netbeans project
|
---|
| 95 | - optimize-images short script to decrease size of PNG images
|
---|
| 96 | - patches/ patches for external libraries used in JOSM (see below)
|
---|
| 97 | - README this file
|
---|
| 98 | - src/ the source code of the program
|
---|
| 99 | - start.html HTML page to run the applet version of JOSM
|
---|
| 100 | - styles/ map styles included in JOSM
|
---|
| 101 | - sytles_nodist/ files needed for map style maintenance
|
---|
| 102 | - potlatch2/README infos on how to update the Potlatch 2 style from upstream sources
|
---|
| 103 | - test/ automated software tests
|
---|
[6216] | 104 | - data/ resources used for some tests
|
---|
[5341] | 105 | - functional/ functional tests (source code)
|
---|
| 106 | - lib/ libraries needed for (some of) the tests
|
---|
[6216] | 107 | - performance/ performance tests (source code)
|
---|
[5341] | 108 | - unit/ unit tests (source code)
|
---|
| 109 | - tools/ libraries and tools that help in the development process
|
---|
[6216] | 110 | - animal-sniffer-ant-tasks-1.8.jar
|
---|
[5341] | 111 | TODO: what is this?
|
---|
[6216] | 112 | - appbundler-1.0ea.jar used to build Mac OS X package for Oracle Java 7
|
---|
[5341] | 113 | - findbugs/ libs and config files for findbugs (automatically detects common bugs and potential
|
---|
| 114 | problems in source code); can be launched as an ant target in build.xml
|
---|
[6216] | 115 | - jacocoant.jar used to include coverage data into JUnit test reports
|
---|
[5341] | 116 | - javacc.jar used in the build process to generate some .java files from a javacc source file
|
---|
| 117 | (src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParser.jj)
|
---|
| 118 | - proguard.jar optimize final binary jar - see build.xml (not used in production so far)
|
---|
| 119 |
|
---|
| 120 | The 'patches' directory
|
---|
| 121 | -----------------------
|
---|
| 122 | Some libraries that JOSM depends on, are patched for various reasons. The files in the patches directory can be used to roll back these customizations. This is useful in order to
|
---|
| 123 |
|
---|
[5545] | 124 | * inspect the changes
|
---|
[5341] | 125 | * update to a newer version of the library but keep the modifications
|
---|
| 126 |
|
---|
[5545] | 127 | You can use 'quilt' to manage the patches. E.g. the following command applies all of them:
|
---|
[5341] | 128 |
|
---|
| 129 | $ quilt push -a
|
---|
| 130 |
|
---|
| 131 | Of course, it is also possible to apply the patch files manually one by one.
|
---|
| 132 |
|
---|
[5545] | 133 | Third party libraries
|
---|
| 134 | ---------------------
|
---|
| 135 | There are a couple of third party libraries which are directly included in the source code tree, in particular:
|
---|
[5341] | 136 |
|
---|
[5545] | 137 | * jmapviewer: Java component to browse a TMS map
|
---|
| 138 | src/org/openstreetmap/gui (svn external)
|
---|
| 139 | -> http://svn.openstreetmap.org/applications/viewer/jmapviewer/
|
---|
| 140 | * Apache Ant's bzip2: Support for bzip2 compression when opening files
|
---|
| 141 | src/org/apache/tools/bzip2 (svn external)
|
---|
| 142 | -> http://svn.apache.org/repos/asf/ant/core/trunk/src/main/org/apache/tools/bzip2
|
---|
| 143 | * Apache commons codec: Better Base64 support
|
---|
| 144 | src/org/apache/commons/codec (svn external)
|
---|
| 145 | -> http://svn.apache.org/repos/asf/commons/proper/codec/trunk/src/main/java/org/apache/commons/codec
|
---|
| 146 | * SVG Salamander: Support for SVG image format
|
---|
| 147 | src/com/kitfox/svg
|
---|
| 148 | -> http://svgsalamander.java.net/
|
---|
| 149 | * Metadata Extractor: Read EXIF Metadata of photos
|
---|
| 150 | src/com/drew
|
---|
| 151 | -> http://www.drewnoakes.com/code/exif/
|
---|
| 152 | * Signpost: OAuth library
|
---|
| 153 | src/oauth, src/com/google
|
---|
| 154 | -> http://code.google.com/p/oauth-signpost/
|
---|
| 155 | * GNU getopt Java port: Command line argument processing library
|
---|
| 156 | src/gnu/getopt
|
---|
| 157 | -> http://www.urbanophile.com/~arenn/hacking/download.html
|
---|
| 158 | * MultiSplitPane: Small lib for GUI layout management
|
---|
| 159 | src/org/openstreetmap/josm/gui/MultiSplitLayout.java, MultiSplitPane.java
|
---|
| 160 | -> http://today.java.net/pub/a/today/2006/03/23/multi-split-pane.html
|
---|
| 161 | * swinghelper: Class CheckThreadViolationRepaintManager to find classpath violations
|
---|
| 162 | src/org/jdesktop/swinghelper/debug/CheckThreadViolationRepaintManager.java
|
---|
| 163 | -> http://java.net/projects/swinghelper
|
---|
| 164 |
|
---|
| 165 |
|
---|