[OSM-newbies] Beginner in unmapped region - Adelaide, Australia

Paul Schulz pschulz01 at gmail.com
Thu Mar 15 12:36:00 GMT 2007


Hi Oliver,

> I'm using Ubuntu too - and JOSM works very nicely.

I had some problems getting it to run, due to what looked like a
conflict between GNU and sun java.. see solution, below

> JOSM isn't in the Ubuntu repositories - but it shouldn't be difficult to
> install. You need to make sure you've got Java installed (it's in the
> repositories as sun-java5-jre or sun-java6-jre).

Did that..

> Then to run it you just need to go to open a terminal window, change to the
> folder where you saved josm-latest.jar and type "java -jar josm-latest.jar"

Got the following error..

paul at laptop:~/Desktop$ java -jar  josm-latest.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
org.openstreetmap.josm.Main
   at java.lang.Class.initializeClass(libgcj.so.70)
   at java.lang.Class.initializeClass(libgcj.so.70)
Caused by: java.lang.ClassNotFoundException:
java.util.concurrent.Executor not found in
gnu.gcj.runtime.SystemClassLoader{urls=[file:josm-latest.jar],
parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.70)
   at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.70)
   at java.lang.ClassLoader.loadClass(libgcj.so.70)
   at java.lang.ClassLoader.loadClass(libgcj.so.70)
   at java.lang.Class.initializeClass(libgcj.so.70)
   ...1 more

Ran: 'sudo update-java-alternatives -l' to see what options I had. then
  'sudo  update-java-alternatives -s java-6-sun' which fixed up all
the java paths.

JOSM now runs (Yippee!) but with the following message on startup.

java.io.FileNotFoundException: /home/paul/.josm/preferences (No such
file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:106)
        at java.io.FileInputStream.<init>(FileInputStream.java:66)
        at java.io.FileReader.<init>(FileReader.java:41)
        at org.openstreetmap.josm.data.Preferences.load(Preferences.java:135)
        at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:96)

Setting a preference must have created this file, as the error went
away on subsequent executions.

> Good luck!

Thanks, I needed it.

> Olly

Paul




More information about the newbies mailing list