Skip to content
Git-like mirror of JOSM's Subversion repository
Java Groovy HTML C++ C CSS Other
Latest commit 750a317 May 25, 2016 JOSM GitHub mirror Merge branch 'master' into mirror
Failed to load latest commit information.
.externalToolBuilders Applied #3899 - patch by jpstotz - Automated creation of REVISION fil… Nov 14, 2009
.settings findbugs: DP_DO_INSIDE_DO_PRIVILEGED + UWF_UNWRITTEN_FIELD + RC_REF_C… May 16, 2016
data fix #12865 - don't warn about `highway=services|rest_area` + `addr:po… May 24, 2016
data_nodist i18n update Apr 26, 2016
eclipse update Eclipse configuration to improve build time and compatibility … May 1, 2015
images Merge branch 'master' into mirror May 15, 2016
images_nodist fix #12752 - Add more image filters (patch by michael2402, modified) Apr 12, 2016
linux applied #12760 - Install additional hicolor icon sizes (by sebastic) Apr 16, 2016
macosx/ fix #6896 - update OSX icon with new logo Dec 8, 2014
netbeans update netbeans project May 13, 2016
patches fix #11257 - Remove apache.commons.codecs - patch by Florian Schaefer Mar 22, 2015
resources/org/glassfish/json fix #9590 - replace org.json with GPL-compliant jsonp + remove mentio… Jan 26, 2014
scripts findbugs - fix/suppress most of warnings reported in unit tests + ena… May 15, 2016
src Merge branch 'master' into mirror May 25, 2016
styles/standard see #12782 - adjust zoom dependend font size: fix z18 when `mappaint.… May 10, 2016
styles_nodist fix svn:eol property Mar 8, 2016
test GSOC core rework - LayerManager, see #12863, rename `LayerManagerWith… May 25, 2016
tools see #11924 - update to Jacoco 0.7.7-20160523.090959-28 snapshot to ad… May 24, 2016
windows Merge branch 'master' into mirror Mar 7, 2016
.checkstyle update Checkstyle to 6.8.1, update Eclipse project, fix checkstyle is… Aug 1, 2015
.classpath update to equalsverifier 2.1 May 23, 2016
.project enable SonarLint nature in Eclipse project Oct 23, 2015
CONTRIBUTION fix #11162 - update to metadata-extractor 2.7.2 Mar 10, 2015
LICENSE see #9590 - JSON code is not compatible with GPL Feb 14, 2014
README see #11924 - update to Groovy 2.4.6-SNAPSHOT (rev 23ad731c49dceda51e5… Jan 6, 2016
build.xml Merge branch 'master' into mirror May 24, 2016 update geticons script, drop 4 unused icons Mar 28, 2016
gpl-2.0.txt fixed #1469. patch by xeen Feb 24, 2009
gpl-3.0.txt cleanup license and contributions a bit Jul 17, 2009
josm-latest.jnlp see #8465 - switch core to Java 7 Apr 26, 2014
josm.jnlp see #8465 - fix easy compilation warnings Apr 27, 2014
optimize-images cleanup Sep 5, 2014 update presets links Jun 7, 2015


Supplemental information for JOSM -- the Java OpenStreetMap Editor

            I. Install & Launch

Installation notes
To run JOSM, you need:

* The JOSM .jar file, e.g., josm-tested.jar or josm-latest.jar
* Java Runtime Environment (JRE) 7, or later.

How to get Java Runtime Environment
You need JRE Version 7, or later.

Microsoft Windows and Apple Mac OS X users should visit
and download the latest Java executable for their system.

Linux users should visit
There is a Linux binary installer, which you must execute from a console, or
use the mechanism of your distribution's packaging system.

How to launch
Microsoft Windows users launch by double-clicking on the .jar file.
If this does not work, open a command shell and type
"java -jar josm-latest.jar"  in the directory that holds the file. (Please
replace josm-latest.jar with the name of your .jar file, if you aren't using
the latest version.)

Under Linux, open a shell, go to the file directory and type
"java -jar josm-latest.jar" to launch. If this does not work, try to set
your JAVA_HOME variable to the java executable location (the root location,
not the bin).

MacOS X users just click on the .jar file icon.

            II. Development

How to get the source code
Download it directly from the subversion at To use the command line subversion
client, type

svn co josm

Files & directories
This is an overview of the files and directories in the JOSM code repository:
- build.xml                 ant build file (standard way to create a JOSM binary)
- CONTRIBUTION              list of major code contributors
- data/                     data files that will be included in the JOSM jar file
    - fonts/                font files used for map rendering
    - projection/           projection files
      - *.gsb               NTv2 grid files for projection support
      - epsg                list of projection definitions
    - *.lang                translation data
    - *.xsd                 xml schema files for validation of configuration files
    - help-browser.css      CSS file for the help sites (HTML content is downloaded from the website
                            on demand, but displayed inside the programm in a Java web browser component.)
    - validator/            data files used by the JOSM validator feature
      - *.cfg               files designed for the old tagchecker, still used
      - *.mapcss            default validation rules for the new mapcss-based tagchecker
- data_nodist/              data files that are useful for development, but not distributed
    - exif-direction-example.jpg
                            sample image, that contains direction information in the EXIF header
                            (keys: Exif.GPSInfo.GPSImgDirectionRef, Exif.GPSInfo.GPSImgDirection)
    - filterTests.osm       used for unit testing of the filter feature
                            (see test/unit/org/openstreetmap/josm/data/osm/
    - Join_Areas_Tests.osm  some examples to test the 'join areas' feature
    - mapcss/               sample map styles and corresponding data files for regression testing
    - projection-reference-data.csv
                            reference data for projection tests
                            (see test/unit/org/openstreetmap/josm/data/projection/
    - projection-regression-test-data.csv
                            regression data for projection tests
                            (see test/unit/org/openstreetmap/josm/data/projection/
-               tool, to find all used icons and allows deleting unused icons
- gpl-2.0.txt, gpl-3.0.txt  full text of the GNU General Public License
- images/                   images distributed with the JOSM binary
    - icons                 images for the Potlatch 2 style
    - styles/standard       images for the main map style (external repository)
- images_nodist/            images, which are not for distribution, but may be useful later (e.g. high
                            resolution and vector versions)
- josm.jnlp                 Java Web Start launcher file (used on the website for the tested version)
- josm-latest.jnlp          Java Web Start launcher file (used on the website for the latest version)
- LICENSE                   the JOSM license terms
- linux/                    files useful for Linux distributions, including Appdata files, .desktop
                            files, Debian/Ubuntu scripts, man pages, icons, etc.
- macosx/                   files needed to create the MacOS X package
- netbeans/                 preconfigured Netbeans project
- optimize-images           short script to decrease size of PNG images
- patches/                  patches for external libraries used in JOSM (see below)
- README                    this file
- resources/                resource files that will be included in the JOSM jar file
- scripts/                  various scripts used by JOSM developers
- src/                      the source code of the program
- start.html                HTML page to run the applet version of JOSM
- styles/                   map styles included in JOSM
- sytles_nodist/            files needed for map style maintenance
    - potlatch2/README      infos on how to update the Potlatch 2 style from upstream sources
- test/                     automated software tests
    - data/                 resources used for some tests
    - functional/           functional tests (source code)
    - lib/                  libraries needed for (some of) the tests, including JUnit
    - performance/          performance tests (source code)
    - unit/                 unit tests (source code)
- tools/                    libraries and tools that help in the development process
    - animal-sniffer-ant-tasks-1.14.jar
                            used to build and check code signatures to ensure plugins binary compatibility 
    - appbundler-1.0ea.jar  used to build Mac OS X package for Oracle Java 7
    - checkstyle/           libs and config files for checkstyle (automatically detects code style
                            problems in source code); can be launched as an ant target in build.xml
    - commons-cli-1.3.1.jar dependency of Groovy Ant task
    - findbugs/             libs and config files for findbugs (automatically detects common bugs and potential
                            problems in source code); can be launched as an ant target in build.xml
    - groovy-all-2.4.6.jar  used for some unit tests and various scripts
    - jacocoant.jar         used to include coverage data into JUnit test reports 
    - javacc.jar            used in the build process to generate some .java files from a javacc source file
    - proguard.jar          optimize final binary jar - see build.xml (not used in production so far)
    - xmltask.jar           used to edit XML files from Ant for the OSX package
- windows/                  files needed to create the Windows installer

The 'patches' directory
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

 * inspect the changes
 * update to a newer version of the library but keep the modifications

You can use 'quilt' to manage the patches. E.g. the following command applies all of them:

 $ quilt push -a

Of course, it is also possible to apply the patch files manually one by one.

Third party libraries
There are some third party libraries which are directly included in the source code tree, in particular:

* jmapviewer: Java component to browse a TMS map
    src/org/openstreetmap/gui (svn external)
* Apache commons compress: Support for bzip2 compression when opening files
    src/org/apache/commons/compress/compressors (svn external)
* Apache commons validator: Improved validator routines
* SVG Salamander: Support for SVG image format
* Metadata Extractor: Read EXIF Metadata of photos
* Signpost: OAuth library
    src/oauth, src/com/google
* GNU getopt Java port: Command line argument processing library
* MultiSplitPane: Small lib for GUI layout management
* swinghelper: Class CheckThreadViolationRepaintManager to find classpath violations
Something went wrong with that request. Please try again.