Opened 15 months ago
Closed 15 months ago
#23985 closed defect (worksforme)
Starting JOSM.exe with another profile not working ("Changing the directory base name" with installed josm not possible)
| Reported by: | negreheb | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | template_report | Cc: |
Description (last modified by )
What steps will reproduce the problem?
- Download .msi from https://josm.openstreetmap.de/
- Start JOSM normally with the windows-shortcut in the startmenu - working perfectly fine
- Creating a new profile for working with OpenHistoricalMap
- Reading https://josm.openstreetmap.de/wiki/Help/Preferences
- Copying the
\AppData\Local\JOSMto\AppData\Local\JOSM-OHMand integrating the properties from\AppData\Roaming\JOSMso i can change them - Trying to use with
\AppData\Local\JOSM\app\josm-custom.jarwith the commandjava -Djosm.dir.name=JOSM-OHM -jar josm-custom.jarfrom within theJOSM-OHM\app\-Folder leads to an java-version-error.
What is the expected result?
Starts like the the regular JOSM.
It seems every instruction everywhere is expecting the usage of an downloaded .jar and not an installed JOSM on Windows.
What happens instead?
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/openstreetmap/josm/gui/MainApplication has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
It seems JOSM does not pass the options correctly about Java.
Please provide any additional information below. Attach a screenshot if possible.
Using windows 11, not windows 10.
Revision:19230 Build-Date:2024-10-02 11:41:59 Identification: JOSM/1.5 (19230 de) Windows 11 64-Bit OS Build number: Windows 10 Enterprise 23H2 (22631) Memory Usage: 832 MB / 24448 MB (255 MB allocated, but free) Java version: 21.0.4+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920x1080x32bpp@60Hz (scaling 1.25×1.25) \Display1 1920x1080x32bpp@60Hz (scaling 1.00×1.00) \Display2 1920x1080x32bpp@60Hz (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→32×32, 32×32→32×32 System property file.encoding: UTF-8 System property sun.jnu.encoding: Cp1252 Locale info: de_DE Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Djpackage.app-version=1.5.19230, -XX:MaxRAMPercentage=75.0, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe] Dataset consistency test: No problems found Plugins: + ColorPlugin (v1.1.2.1) + ElevationProfile (36309) + FixAddresses (36344) + ImproveWay (32) + Mapillary (1778) + OpeningHoursEditor (36344) + Review.Changes (1.1.1) + apache-commons (36282) + austriaaddresshelper (1727789616) + buildings_tools (36344) + ejml (36176) + geochat (36149) + gridify (1718663815) + indoorhelper (1.2.3) + jaxb (36118) + jogl (1.2.3) + log4j (36273) + lwjgl (36176) + lwjgl-windows (36176) + measurement (36344) + notesolver (0.5.0) + reverter (36343) + splinex (36126) + terracer (36344) + utilsplugin2 (36344) Tagging presets: + https://github.com/kendzi/Simple3dBuildingsPreset/releases/download/0.9_2018-05-08/s3db-preset.zip + https://josm.openstreetmap.de/josmfile?page=Presets/Xmas&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/Crafts&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/Golf_Course&zip=1 + https://raw.githubusercontent.com/species/josm-preset-wheelchair/master/sidewalks_kerbs.xml + https://josm.openstreetmap.de/josmfile?page=Presets/Fahrradverleih&zip=1 + https://josm.openstreetmap.de/josmfile?page=Presets/Disc_Golf_Course&zip=1 Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransportV2&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Power&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/SimpleBuildingTags&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Schools&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Cycleways&zip=1 + https://josm.openstreetmap.de/josmfile?page=Styles/FixmeAndNote&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Enhanced_Lane_and_Road_Attributes&zip=1 + https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_buildings&zip=1 - https://raw.githubusercontent.com/yopaseopor/indoormap/master/indoormap-style.mapcss - %UserProfile%\Downloads\JOSM\disc_golf_course\josm_disc_golf_course2.mapcss + https://josm.openstreetmap.de/josmfile?page=Styles/DiscGolfCourse&zip=1 - <josm.pref>\plugins\indoorhelper\resources\sit.mapcss Last errors/warnings: - 00006.758 W: Kartenstile konnten nicht von '%UserProfile%\Downloads\JOSM\disc_golf_course\josm_disc_golf_course2.mapcss' geladen werden. Fehler war: java.nio.file.NoSuchFileException: %UserProfile%\Downloads\JOSM\disc_golf_course\josm_disc_golf_course2.mapcss - 00006.759 E: java.nio.file.NoSuchFileException: %UserProfile%\Downloads\JOSM\disc_golf_course\josm_disc_golf_course2.mapcss - 00022.965 E: Invalid setting (Icon missing): org.openstreetmap.josm.plugins.fixAddresses.FixAddressesPreferences - 00134.269 E: Invalid setting (Icon missing): org.openstreetmap.josm.plugins.fixAddresses.FixAddressesPreferences - 00200.022 E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=401, Error Header=<Abruf der Benutzerdetails mit der Zugriffskennung mit dem Schlüssel SOME_PRIVATE_KEY abgelehnt.> - 00200.033 E: Test fehlgeschlagen - <html>Zugriff auf dem OSM-Server "https://api.openhistoricalmap.org/api"<br>mit der Zugriffskennung "SOME_PRIVATE_KEY" fehlgeschlagen.<br>Der Server hat die Kennung als unberechtigt zurückgewiesen. Diese Kennung kann nicht zum Zugriff auf geschützte Ressourcen auf diesem Server verwendet werden.</html> - 00259.457 W: Kartenstile konnten nicht von '%UserProfile%\Downloads\JOSM\disc_golf_course\josm_disc_golf_course2.mapcss' geladen werden. Fehler war: java.nio.file.NoSuchFileException: %UserProfile%\Downloads\JOSM\disc_golf_course\josm_disc_golf_course2.mapcss - 00259.458 E: java.nio.file.NoSuchFileException: %UserProfile%\Downloads\JOSM\disc_golf_course\josm_disc_golf_course2.mapcss - 00810.265 W: java.net.SocketTimeoutException: Read timed out. Ursache: java.net.SocketTimeoutException: Read timed out - 00976.529 E: Invalid setting (Icon missing): org.openstreetmap.josm.plugins.fixAddresses.FixAddressesPreferences OSM API: https://api.openhistoricalmap.org/api
Attachments (0)
Change History (3)
comment:1 by , 15 months ago
| Description: | modified (diff) |
|---|
comment:2 by , 15 months ago
comment:3 by , 15 months ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
Alternatively you can write a batch file that changes app/JOSM.cfg to have the OHM profile path.



As already written in the forum you need to use java 11+. Java 8 will not work. You have two options: