Changes between Initial Version and Version 95 of InstallNotes


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • InstallNotes

    v1 v95  
     1[[TranslatedPages]]
     2[[PageOutline(2-10,Table of Content)]]
     3
     4Read [[Download#Recommendedoptions]] first.
     5
     6== Running ==
     7A working Java Runtime Environment version 8 or newer is needed to run JOSM.
     8
     9=== Microsoft Windows ===
     10Double click on the jar file.
     11
     12If this does not work, you probably need to [wiki:Download#Doubleclickonafiledoesnothing install the Java Runtime Environment].
     13
     14To avoid the Java console windows staying open, you can use `javaw.exe` instead of `java.exe`.
     15
     16Be careful if you run a 64-bit version of Windows, the Java Runtime (update every month) may be installed in 64-bit when visiting the Java website with a 64-bit version of your browser, or in 32-bit otherwise.
     17Both Java platforms will coexist on the PC, but by default the file associations will run first the 32-bit version, creating VMs limited to a maximum of 247MB (if your VM size reaches this limit, due to the volume of data loaded, JOSM may become very slow or unresponsive).
     18
     19But, the JAR extension will only be launched with the 32-bit version of the Java Runtime ("\Program files (x86)\bin" folder, instead of "\Program files\bin" for the 64-bit version) since the v8u66 if both versions are installed.
     20
     21Visit the www.java.com main site, choose to download java ... and chose the i586 package. You can keep the 64-bit package because it is not installed at the same location than the 32-bit (i586) package.
     22
     23If only a 64-bit version of Java is installed on a 64-bit version of Windows (and with a Java version higher or equal to the minimum version specified in the JNLP if you use JavaWebStart to download/update and launch JOSM), JOSM will start automatically in a 64-bit Java VM (with more memory available to handle larger volumes of data, and better performance). Otherwise, it will launch in a 32-bit Java VM, unless you add VM parameters to the command line to locate and use the 64-bit version of Java.
     24
     25But you may also uninstall any 32-bit versions of Java if you don't need applets in a 32-bit browser (the 32-bit version of Java remains useful when using an old 32-bit browser for using applets in web pages, or for 32-bit OSes where this is the only choice available on the web or in standalone usage).
     26
     27=== Linux / *BSD ===
     28''See also'': [wiki:HowTo/JOSM-under-Linux HowTo JOSM-under-Linux]
     29
     30 **packages**::
     31 In some Distributions, prepacked packages exist to install JOSM with your favorite package manager from the repositories.
     32 Although these packages might be a bit older than the .jar files on the main page, they usually fit better into the environment and install dependencies and a starter in the menu automatically.
     33
     34 **Note**: There is no problem with installing the prepacked package and still using the .jar files listed above but be careful with additional packages like josm-plugins (see #7483).
     35
     36
     37 For SUSE and Ubuntu, there are also packages on this page [[Download#openSUSE|available]].
     38 If there exists no package or you do not want to use it you can download the JOSM .jar file from the [WikiStart main page] (tested or latest version) or build it from source.
     39
     40 '''using the shell'''::
     41  Go to the directory where the josm-latest.jar is and type
     42{{{
     43#!sh
     44java -jar josm-latest.jar
     45}}}
     46  to launch. Replace `josm-latest.jar` with the name of the jar file you loaded, e.G. `josm.jar` for releases.
     47
     48  If this doesn't help, try to set your JAVA_HOME variable to the java location (the root location, not the bin. As example:
     49{{{
     50#!sh
     51 export JAVA_HOME=/usr/lib/jvm/default-java
     52 java -jar ''josm.jar''
     53}}}
     54
     55 See also [wiki:Help/CommandLineOptions command line options] and [wiki:HowTo/JOSM-under-Linux Josm under Linux Howto] for additional info.
     56 '''KDE'''::
     57  There is a [/download/tutorials/setting_up_kde.avi tutorial] on how to setup your environment to start jar-files by clicking on them.
     58
     59 '''GNOME'''::
     60  Right-click on the JAR file, and select __O__pen with "OpenJDK8 Runtime", or whatever Java version you have.
     61
     62 '''XGL/Compiz'''::
     63  Type this into a shell:
     64{{{
     65#!sh
     66export AWT_TOOLKIT=MToolkit && java -jar josm-test.jar
     67}}}
     68  as described here: http://kubasik.net/blog/index.php/2006/06/19/java-sun-150-and-xglcompiz-on-ubuntu/
     69
     70=== MacOS ===
     711. If you have downloaded `josm-latest.jar` you can start JOSM by clicking on the josm-latest.jar file in the MacOS Finder (you might get the warning that you are about to open a file from the internet - just accept).
     72
     73 This way to start JOSM should be sufficient in most cases.
     74 
     752. If you are running Mountain Lion, you will need to temporarily disable Gatekeeper. Otherwise, you will be unable to open josm and upon launching josm, receive the error message "JOSM.app is damaged and can't be opened. You should move it to the Trash." Disable Gatekeeper by opening System Preferences > Security & Privacy, and setting 'Allow applications downloaded from:' to 'Anywhere'. Once you open the application, you can re-enable gatekeeper, and it appears that JOSM will open again without a problem. See [osmwww:user/drnoble/diary/17636 this] and #7904 for more information.
     76
     773. If you get "The Java JAR file could not be launched", chances are you are running an old Java version.  Run from a terminal to check, as nothing appears in the system log.
     78[[Image(OSX_Error.png)]]
     79
     804. If you need to supply parameters (e.g. -Xmx2048M to run with more Java memory) you can use the MacOS "Terminal":
     81
     82 Start the "Terminal" application (e.g. by typing "Terminal" into the Spotlight Search, ⌘+space)
     83[[Image(SearchTerminal.png)]]
     84
     85* Now you have two options:
     86 * type in the following command and press "Enter" to start JOSM without any special java options (simply starts up JOSM like under point 1):
     87{{{
     88#!sh
     89java -jar FOLDER/josm-latest.jar
     90}}}
     91 Whereas "FOLDER" should be replaced by the name of the folder you have josm-latest.jar downloaded to. If you have downloaded it to the standard Mac OS X "Downloads" Folder it would look like:
     92{{{
     93#!sh
     94java -jar Downloads/josm-latest.jar
     95}}}
     96
     97== See also ==
     98* [[Source code#Getthesource]]
     99* [[Source code#CompilingusingAnt]]