NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Josm 8227 Win 7 x64

I reinstalled my Windows and before doing so, I made a backup in JOSM -> Preferences -> Advanced Preferences (selected all items, Export selected items) Now when I try to import them back (Read from file) I get the following error:

Error: initializing script engine: null -- Reading custom preferences from D:\BACKUP 2015\josmprefs.xml -- Error reading custom preferences: null

asked 08 May '15, 15:41

diversik's gravatar image

accept rate: 0%

for the next time: I would suggest to just copy (and copy back from the backup) your full josm settings directory (under Linux it is ~/.josm; under Windows maybe %APPDATA%\JOSM)

(08 May '15, 21:08) aseerel4c26 ♦

Thanks for all the answers.

Installing the scripting plugin didn't help, same message. Installing some of the other plugins didn't help either (although I don't remember exactly which plugins I had before, could be one or two missing in the present install). I didn't thought about the plugins when I did the backup, I expected the list for the current installed plugins would be contained inside the exported xml and at the time of the import JOSM would download them again.

I managed to solve the problem by copy/pasting the proper data from the exported .xml into %APPDATA%\JOSM\preferences.xml

It was the same version for josm and OS, same permissions as before.

permanent link

answered 09 May '15, 09:00

diversik's gravatar image

accept rate: 0%

meta: could you please add the stuff about the scripting plugin as a separate comment, so that your actual solution is alone? This way someone with the same problem would not need to read all the stuff which does not work. :-)

(09 May '15, 10:58) aseerel4c26 ♦

I'd have thought that "what was tried but didn't work" was pretty relevant as part of an answer that describes clearly "what did work"?

(09 May '15, 11:20) SomeoneElse ♦

@SomeoneElse: hmm, I would rather have it near the initial suggestions (maybe as a "comment" to mmd's suggestion which could be an "answer" too). In any case and whereever, "what did not work" is a very useful info. Okay... maybe delete our comments when read. ;-)

(09 May '15, 11:54) aseerel4c26 ♦

i think josm trac is the better place for this question.

i'm using ubuntu so far. i could only speculate: same josm version? correct permission settings? and so on.

permanent link

answered 08 May '15, 19:52

Harald%20Hartmann's gravatar image

Harald Hartmann
accept rate: 33%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 08 May '15, 15:41

question was seen: 4,145 times

last updated: 09 May '15, 11:54

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum