Results 1 to 9 of 9

Thread: Installing JOSM

  1. #1
    Join Date
    Mar 2005
    Location
    York, UK
    Beans
    1,811

    Installing JOSM

    Please see the Ubuntu help wiki page on JOSM at https://help.ubuntu.com/community/JOSM

    This is an installation guide for the Java Open Street Map editor on Ubuntu 7.04 (Feisty Fawn). It has not yet been tested on any previous version of Ubuntu, though it will most likely work without problem.

    The Open Street Map project has been around for several years now and the best currently developed editor (JOSM) has not yet been packaged for Debian or Ubuntu. There are several sticking points, but while they are being resolved I have put this installation guide together to allow you to use the project's main development jar file directly. Once JOSM has been cleared for Debian inclusion this guide could be used to install the latest daily release.
    Be advised that some potential licensing problems have been raised and are not yet fully resolved.

    Step 0 - Install Java

    Unfortunately GNU's GCJ is not compatible yet, so you will have install Sun Java JRE of at least v1.5. This is best done through Synaptic or the following command. Requires universe repository.
    i)
    Code:
    sudo aptitude install sun-java6-jre
    ii) Ensure the Java path is set to the latest Java version.
    Code:
    sudo update-alternatives --config java

    Step 1 - Install JOSM

    i) Download JOSM
    Code:
    wget http://josm.openstreetmap.de/download/josm-latest.jar
    Also maybe take a look at the recent changes.
    http://josm.openstreetmap.de/log/?verbose=on
    ii) Copy the jarfile into a system directory.
    Code:
    sudo mv -v josm-latest.jar /usr/share/java/
    iii) Now it should start with the following command.
    Code:
    java -jar /usr/share/java/josm-latest.jar

    Step 3 - GNOME integration

    For better integration into the gnome desktop I used these steps
    i) Download the menu icon and place it in the /usr/share/pixmaps/ directory.
    Code:
    wget http://josm.openstreetmap.de/browser/trunk/images/logo.png
    Code:
    sudo mv -v logo.png /usr/share/pixmaps/josm.png
    ii) Use the following code to create a josm.desktop file place it in the /usr/share/applications/ directory. I only speak English so I am unable to add any translations at this time.
    Code:
    [Desktop Entry]
    Encoding=UTF-8
    Name=JOSM
    Comment=Import GPX files and upload Open Street Map data
    Exec=java -jar /usr/share/java/josm-latest.jar
    Icon=josm.png
    Terminal=false
    Type=Application
    StartupNotify=true
    Categories=Application;GTK;Java;Utility;Viewer;
    MimeType=application/x-GPS-Exchange-Format
    Now you should have an entry for JOSM in your Applications -> Accessories menu. You only have to repeat step 1 to update JOSM to the latest daily build.
    Last edited by spd106; January 26th, 2008 at 08:36 PM. Reason: Add redirection link to the Ubuntu help wiki
    UP Team member

  2. #2
    Join Date
    Dec 2005
    Beans
    15

    Re: Installing JOSM


  3. #3
    Join Date
    Jan 2008
    Beans
    4

    Re: Installing JOSM

    For the desktop file, I would have this in the code block, to be consistent with the previous two code blocks:
    Code:
    sudo cat > /usr/share/applications/josm.desktop <<EOF
    [Desktop Entry]
    Encoding=UTF-8
    Name=JOSM
    Comment=Import GPX files and upload Open Street Map data
    Exec=java -jar /usr/share/java/josm-latest.jar
    Icon=josm.png
    Terminal=false
    Type=Application
    StartupNotify=true
    Categories=Application;GTK;Java;Utility;Viewer;
    MimeType=application/x-GPS-Exchange-Format
    EOF

  4. #4
    Join Date
    Mar 2005
    Location
    York, UK
    Beans
    1,811

    Re: Installing JOSM

    Thanks for the recommendation RussNelson.

    I've created a page in the help wiki for JOSM. This will make it easier if anyone has anything further to add or any changes they would like to make.

    I'm not trying compete with the OSM wiki, this should be for Ubuntu specific information only.

    https://help.ubuntu.com/community/JOSM
    UP Team member

  5. #5
    Join Date
    Dec 2007
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Installing JOSM

    Thanks for the useful info, spd103 and everyone in this thread too! Is there anyone working on packaging this for Debian/Ubuntu in the form of a normal .deb?

  6. #6
    Join Date
    Mar 2005
    Location
    York, UK
    Beans
    1,811

    Re: Installing JOSM

    There has been a bug open on launchpad for a good while now, see https://bugs.launchpad.net/ubuntu/+bug/94009

    Upstream in Debian I think the main concern has been resolved and there is a sponsor attached. Now we just need someone with the time and skills to put a package together.
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=385371
    UP Team member

  7. #7
    Join Date
    Sep 2006
    Location
    West Yorkshire, UK
    Beans
    2
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Installing JOSM

    I've uploaded the Debian package to the Openstreetmap Launchpad PPA:

    https://launchpad.net/~openstreetmap/+archive/ppa

  8. #8
    Join Date
    Jul 2008
    Location
    Quebec, Canada
    Beans
    98
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Installing JOSM

    Hi There, I'm wondering why the plug-ins list in JOSM has only a few of them showing up, (only 10 of them) even after updating the plugin list it doesnt increase the list.

    Any clues?
    Thanks.

  9. #9
    Join Date
    Feb 2008
    Beans
    5,078
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Installing JOSM

    You're looking at a thread which is three years old.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •