#22188 closed defect (fixed)
Scripting is not working
Reported by: | anonymous | Owned by: | Gubaer |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin scripting | Version: | |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
What is the expected result?
What happens instead?
Please provide any additional information below. Attach a screenshot if possible.
Revision:18463 Build-Date:2022-05-30 10:23:53 Identification: JOSM/1.5 (18463 en) Windows 10 64-Bit OS Build number: Windows 10 Pro 2009 (19044) Memory Usage: 190 MB / 1992 MB (60 MB allocated, but free) Java version: 17.0.3+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920×1080 (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: Cp1252 System property sun.jnu.encoding: Cp1252 Locale info: en_IN Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Djpackage.app-version=1.5.18463, --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] Plugins: + AddrInterpolation (35924) + BuildingGeneralization (36) + CADTools (1008) + Create_grid_of_ways (35976) + ImproveWay (32) + OpeningHoursEditor (35924) + PolygonCutOut (v0.7) + SimplifyArea (35976) + apache-commons (35924) + areaselector (405) + austriaaddresshelper (1597341117) + auto_tools (81) + buildings_tools (35978) + centernode (v1.0.4) + conflation (0.6.9) + contourmerge (v0.1.9) + ejml (35924) + gridify (1606242219) + gson (35924) + jts (35976) + junctionchecking (35893) + log4j (35924) + measurement (35976) + merge-overlap (35893) + osm-obj-info (66) + poly (35976) + shrinkwrap (v1.0.4) + terracer (35893) + todo (30306) + utilsplugin2 (35970) Tagging presets: + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Community_IT.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Building_IT.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Entrance.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Internal Roads.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Walkway.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Amenity.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Unit _IT.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Elevator.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Staircase.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\RoadAccess.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Restrictions.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Acceptable package size.xml + D:\VEERESH\FRITS\ITALY\Fwd_ Re_ Italy House number and reverse geocode website\Gates.xml Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_Streets&zip=1 - D:\VEERESH\FRITS\QC\COLOUR\city.mapcss - D:\VEERESH\FRITS\QC\COLOUR\Postcode-style.mapcss - D:\VEERESH\FRITS\QC\COLOUR\Streets-style.mapcss - D:\VEERESH\FRITS\QC\COLOUR\UID.MAPCSS - https://github.com/osmlab/appledata/archive/josm_paint_inline_validation.zip Last errors/warnings: - 00000.902 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF' - 00000.913 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF' - 00007.447 E: java.security.KeyStoreException: Windows-ROOT not found. Cause: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available - 00019.141 E: Broken tagging preset "building-Type of Building?" - number of items in 'display_values' must be the same as in 'values' - 00019.142 E: Detailed information: [Apartments, Hotel/Restaurants, Individual House, Multi Family Residential (like Villas/Row Houses), Commercial, Industrial Area, Kiosk (like Tea stand) , Office Block, Retail , Supermarket (like Walmart), Warehouse, Fire Station, Government (like Government Office), Hospital, Public Area, Parking, Restrooms, Train Station, Transportation, Kindergarten, School, University (with many colleges), College(not more than 1 college building), Yes] <> [apartments, hotel, house, residential, commercial, industrial, kiosk, office, retail, supermarket, warehouse, fire_station, government, hospital, public, restrooms, train_station, transportation, kindergarten, school, university, college, yes] - 00019.641 W: Cannot lock cache directory. Will not use disk cache - 00023.154 E: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin scripting. Cause: java.lang.reflect.InvocationTargetException. Cause: java.lang.NoClassDefFoundError: javax/lang/model/SourceVersion. Cause: java.lang.ClassNotFoundException: javax.lang.model.SourceVersion - 00023.380 W: Disable plugin - Could not load plugin 'scripting'. Delete from preferences? - 00036.901 E: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.mozilla.javascript.JavaMembers === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: AWT-EventQueue-0 (24) of main java.lang.NoClassDefFoundError: Could not initialize class org.mozilla.javascript.JavaMembers at org.mozilla.javascript.NativeJavaClass.initMembers(NativeJavaClass.java:50) at org.mozilla.javascript.NativeJavaObject.<init>(NativeJavaObject.java:53) at org.mozilla.javascript.NativeJavaClass.<init>(NativeJavaClass.java:44) at org.mozilla.javascript.NativeJavaClass.<init>(NativeJavaClass.java:40) at org.openstreetmap.josm.plugins.scripting.js.NativeJavaClassWithJSMixin.<init>(NativeJavaClassWithJSMixin.java:26) at org.openstreetmap.josm.plugins.scripting.js.MixinWrapFactory.wrapJavaClass(MixinWrapFactory.java:30) at org.mozilla.javascript.NativeJavaPackage.getPkgProperty(NativeJavaPackage.java:134) at org.mozilla.javascript.NativeJavaPackage.get(NativeJavaPackage.java:84) at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:2023) at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1672) at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1667) at org.mozilla.javascript.gen.jar_file__C__Users_veereshnagaral_AppData_Roaming_JOSM_plugins_scripting_jar__js_v1_josm_builder_js_5._c_script_0(jar:file:/C:/Users/veereshnagaral/AppData/Roaming/JOSM/plugins/scripting.jar!/js/v1/josm/builder.js:8) at org.mozilla.javascript.gen.jar_file__C__Users_veereshnagaral_AppData_Roaming_JOSM_plugins_scripting_jar__js_v1_josm_builder_js_5.call(jar:file:/C:/Users/veereshnagaral/AppData/Roaming/JOSM/plugins/scripting.jar!/js/v1/josm/builder.js) at org.mozilla.javascript.gen.jar_file__C__Users_veereshnagaral_AppData_Roaming_JOSM_plugins_scripting_jar__js_v1_josm_builder_js_5.exec(jar:file:/C:/Users/veereshnagaral/AppData/Roaming/JOSM/plugins/scripting.jar!/js/v1/josm/builder.js) at org.mozilla.javascript.commonjs.module.Require.executeModuleScript(Require.java:339) at org.mozilla.javascript.commonjs.module.Require.getExportedModuleInterface(Require.java:287) at org.mozilla.javascript.commonjs.module.Require.call(Require.java:216) at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:59) at org.mozilla.javascript.gen.inlineScript_4._c_UniqueID_duplicate_check_2(inlineScript:10) at org.mozilla.javascript.gen.inlineScript_4.call(inlineScript) at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:66) at org.mozilla.javascript.gen.inlineScript_4._c_script_0(inlineScript:109) at org.mozilla.javascript.gen.inlineScript_4.call(inlineScript) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:380) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3868) at org.mozilla.javascript.gen.inlineScript_4.call(inlineScript) at org.mozilla.javascript.gen.inlineScript_4.exec(inlineScript) at org.mozilla.javascript.Context.evaluateString(Context.java:1137) at org.openstreetmap.josm.plugins.scripting.js.RhinoEngine.lambda$evaluateOnSwingThread$2(RhinoEngine.java:233) at org.openstreetmap.josm.plugins.scripting.js.RhinoEngine.runOnSwingEDT(RhinoEngine.java:162) at org.openstreetmap.josm.plugins.scripting.js.RhinoEngine.evaluateOnSwingThread(RhinoEngine.java:230) at org.openstreetmap.josm.plugins.scripting.js.RhinoEngine.evaluateOnSwingThread(RhinoEngine.java:219) at org.openstreetmap.josm.plugins.scripting.ui.ScriptExecutor.runScriptWithEmbeddedEngine(ScriptExecutor.java:308) at org.openstreetmap.josm.plugins.scripting.ui.console.ScriptingConsolePanel$RunScriptAction.actionPerformed(ScriptingConsolePanel.java:223) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source) at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(Unknown Source) at java.desktop/java.awt.Component.processMouseEvent(Unknown Source) at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source) at java.desktop/java.awt.Component.processEvent(Unknown Source) at java.desktop/java.awt.Container.processEvent(Unknown Source) at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.Component.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.desktop/java.awt.EventQueue$4.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.desktop/java.awt.EventQueue$5.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Unknown Source) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Attachments (0)
Change History (20)
comment:1 by , 3 years ago
Component: | Core → Plugin scripting |
---|---|
Owner: | changed from | to
comment:2 by , 3 years ago
comment:3 by , 3 years ago
This looks strange. The plugin list in the report doesn't include scripting but the exception is for sure thrown in scripting plugin code.
What version of the scripting plugin do you use?
comment:4 by , 3 years ago
The plugin list in the report doesn't include scripting
This happens because the plugin could not be loaded. In this case JOSM doesn't know the meta info. Not sure if this could be changed.
comment:5 by , 3 years ago
I can reproduce the problem with a freshly installed plugin.
Revision:18463 Build-Date:2022-05-30 10:23:53 Identification: JOSM/1.5 (18463 en) Windows 10 64-Bit OS Build number: Windows 10 Home 2009 (19044) Memory Usage: 340 MB / 1972 MB (162 MB allocated, but free) Java version: 17.0.3+7-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1920×1080 (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: Cp1252 System property sun.jnu.encoding: Cp1252 Locale info: en_DE Numbers with default locale: 1234567890 -> 1234567890 VM arguments: [-Djpackage.app-version=1.5.18463, --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\HWConsole.exe] Plugins: + apache-commons (35924) + buildings_tools (35978) + contourmerge (v0.1.9) + ejml (35924) + geotools (35959) + imagery-xml-bounds (35976) + jackson (35958) + jaxb (35952) + jts (35976) + o5m (35893) + opendata (35910) + pbf (35978) + poly (35976) + reltoolbox (35976) + reverter (35980) + scripting + undelete (35893) + utilsplugin2 (35970) Validator rules: + c:\josm\core\resources\data\validator\geometry.mapcss + c:\josm\core\resources\data\validator\unnecessary.mapcss + d:\java_tools\JOSM\mygeometry.mapcss Last errors/warnings: - 00000.729 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF' - 00000.732 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF' - 00002.382 E: java.security.KeyStoreException: Windows-ROOT not found. Cause: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available - 00038.678 E: org.openstreetmap.josm.plugins.PluginException: An error occurred in plugin scripting. Cause: java.lang.reflect.InvocationTargetException. Cause: java.lang.NoClassDefFoundError: javax/lang/model/SourceVersion. Cause: java.lang.ClassNotFoundException: javax.lang.model.SourceVersion - 00038.687 W: Disable plugin - Could not load plugin 'scripting'. Delete from preferences?
comment:9 by , 3 years ago
But Java17 on Windows 10 triggers an exception. A different exception than that reported in this ticket, though.
2022-07-04 14:38:40.151 INFORMATION: Protokollierungsgrad ist bei INFORMATION (INFO, 800)
2022-07-04 14:38:40.390 WARNUNG: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
2022-07-04 14:38:40.390 WARNUNG: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
2022-07-04 14:38:41.725 INFORMATION: Nutzbares IPv6-Netzwerk erkannt, IPv6 wird gegenüber IPv4 bevorzugt.
2022-07-04 14:38:42.084 WARNUNG: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0xffffffff80000002. Windows RegCreateKeyEx(...) returned error code 5.
2022-07-04 14:38:42.084 SCHWERWIEGEND: java.lang.ExceptionInInitializerError. Ursache: java.lang.reflect.InaccessibleObjectException: Unable to make private static native long[] java.util.prefs.WindowsPreferences.WindowsRegOpenKey(long,byte[],int) accessible: module java.prefs does not "opens java.util.prefs" to unnamed module @4461c7e3
2022-07-04 14:38:43.415 SCHWERWIEGEND: Handled by bug report queue: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
at org.openstreetmap.josm.tools.PlatformHookWindows.isDotNet45Installed(PlatformHookWindows.java:628)
at org.openstreetmap.josm.tools.PlatformHookWindows.webRequest(PlatformHookWindows.java:676)
at org.openstreetmap.josm.tools.PlatformHookWindows.getX509Certificate(PlatformHookWindows.java:362)
at org.openstreetmap.josm.io.CertificateAmendment.addMissingCertificates(CertificateAmendment.java:240)
at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:878)
at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:277)
at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:741)
2022-07-04 14:38:43.618 SCHWERWIEGEND: Unable to get Windows build number: java.lang.NoClassDefFoundError: Could not initialize class org.openstreetmap.josm.tools.WinRegistry
2022-07-04 14:38:43.738 SCHWERWIEGEND: java.lang.IllegalStateException: HTTP factory has not been set
java.lang.IllegalStateException: HTTP factory has not been set
at org.openstreetmap.josm.tools.HttpClient.create(HttpClient.java:557)
at org.openstreetmap.josm.tools.HttpClient.create(HttpClient.java:545)
at org.openstreetmap.josm.io.CachedFile.checkLocal(CachedFile.java:491)
at org.openstreetmap.josm.io.CachedFile.getFile(CachedFile.java:284)
at org.openstreetmap.josm.io.CachedFile.getInputStream(CachedFile.java:227)
at org.openstreetmap.josm.io.CachedFile.getByteContent(CachedFile.java:245)
at org.openstreetmap.josm.gui.bugreport.JosmUpdatePanel.getTestedVersion(JosmUpdatePanel.java:70)
at org.openstreetmap.josm.gui.bugreport.JosmUpdatePanel.readCurrentVersion(JosmUpdatePanel.java:53)
at java.base/java.lang.Thread.run(Thread.java:833)
comment:10 by , 3 years ago
I have no idea why Java 17 needs so many VM arguments. Maybe your plugin needs another one?
comment:12 by , 3 years ago
The Windows package comes with these (see log above):
VM arguments: [-Djpackage.app-version=1.5.18463, --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\HWConsole.exe]
comment:14 by , 3 years ago
On Windows 10, using a JDK 17 build from Microsoft and a josm-latest.jar
downloaded from the JOSM web site, the following PowerShell script successfully starts JOSM with the scripting plugin.
This is a possible workaround for the problem reported in this ticket.
if ($null -eq $env:JDK17_HOME) { throw "FATAL: environment variable JDK17_HOME not set" } $java_bin="${JDK17_HOME}\bin\java" if ($null -eq $env:JOSM_HOME) { $env:JOSM_HOME="${PSScriptRoot}\josm_home" } Write-Host "Using java binary '${java_bin}'" Write-Host "Using JOSM_HOME=${env:JOSM_HOME}" Start-Process ` -FilePath $java_bin ` -ArgumentList ` "-Djosm.home=${JOSM_HOME}", ` "-classpath" , "josm-latest.jar", ` "--add-modules=java.scripting,java.sql", ` "--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", ` "org.openstreetmap.josm.gui.MainApplication"
comment:15 by , 3 years ago
I tried to add the following command line option to JOSM.cfg
, the configuration file for the Windows josm.exe
java-options=--add-opens=java.base/javax.lang=ALL-UNNAMED
Doesn't fix the problem, though. I'm not sure whether the option isn't picked up by josm.exe
or HWConsole.exe
, or whether additional or different command line options are needed.
comment:16 by , 3 years ago
Class javax.lang.model.SourceVersion
can't be loaded (ClassNotFound). This class is part of the module java.compiler in the export javax.lang.model
I tried to extend JOSM.cfg
as follows, but this doesn't solve the problem:
java-options=--add-modules java-options=java.compiler java-options=--add-exports=java.compiler/javax.lang.model=ALL-UNNAMED java-options=--add-opens=java.compiler/javax.lang.model=ALL-UNNAMED
Probably, the build script win-jpackage.sh has to be extended. The module java.compiler
should probably be added with --add-modules
on Line 83.
comment:19 by , 3 years ago
@Gubaer: As soon as the installers finish building on GitHub for r18525, can you check and make certain they work for you -- I built the mac package locally and tested with that.
EDIT: Release page here: https://github.com/JOSM/josm/releases/tag/18525
comment:20 by , 3 years ago
Installed release 18525 with the msi installer on a Windows 10 machine.
No exceptions anymore. Looks good!
Thanks for the fix!
The plugin is not maintained by the JOSM team. See https://github.com/Gubaer/josm-scripting-plugin