#22129 closed defect (fixed)
java.lang.UnsupportedClassVersionError: ScriptingPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0)
Reported by: | Owned by: | Gubaer | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin scripting | Version: | |
Keywords: | template_report | Cc: |
Description (last modified by )
I have updated to the latest version. Version 18463 of JOSM, josm-tested.jar. I am on Windows 10 Pro. I am trying to open JOSM from the downloaded Executable Jar File . JOSM loader window opens and gets as far as Loading plug-in 'scripting'... and just stops there. I have to use the Task Manager to end the process or it will not close
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.
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2022-05-29 21:53:52 +0200 (Sun, 29 May 2022) Build-Date:2022-05-30 01:30:57 Revision:18463 Relative:URL: ^/trunk Identification: JOSM/1.5 (18463 en_GB) Windows 10 64-Bit OS Build number: Windows 10 Pro 2009 (19044) Memory Usage: 978 MB / 3612 MB (311 MB allocated, but free) Java version: 1.8.0_331-b09, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel Screen: \Display0 1366×768 (scaling 1.00×1.00) \Display1 1920×1080 (scaling 1.00×1.00) \Display2 1680×1050 (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_GB Numbers with default locale: 1234567890 -> 1234567890 Plugins: + FastDraw + Mapillary + PicLayer + apache-commons (35924) + apache-http (35924) + buildings_tools + conflation (0.6.9) + ejml (35924) + fieldpapers + geotools (35959) + imagery_offset_db + jackson + jaxb (35952) + jna (35924) + jts (35924) + mapathoner + mapwithai + measurement (35893) + opendata (35910) + pt_assistant + rasterfilters + reltoolbox (35893) + reverter (35972) + scripting + terracer + todo + tofix + utilsplugin2 (35970) Map paint styles: - https://github.com/MissingMaps/josm_styles/archive/master.zip - https://github.com/osmlab/applepaintstyles/archive/main.zip - https://raw.githubusercontent.com/OpenSidewalks/OpenSidewalks-Schema/master/open_sidewalks.mapcss - https://github.com/MissingMaps/josm_styles/archive/master.zip - https://pasharm.github.io/New_basic_style_for_JOSM/New_basic_style.mapcss - https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/MapWithAI&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/Ph_Typhoon&zip=1 - https://josm.openstreetmap.de/josmfile?page=Styles/NoFeature&zip=1 - https://github.com/osmlab/appledata/archive/josm_paint_inline_validation.zip - https://josm.openstreetmap.de/josmfile?page=Styles/Building_Levels_Labels&zip=1 Validator rules: + https://josm.openstreetmap.de/josmfile?page=Rules/KeepRight&zip=1 + https://josm.openstreetmap.de/josmfile?page=Rules/OSMLint&zip=1 + https://josm.openstreetmap.de/josmfile?page=Rules/QAToolInspiredValidations&zip=1 Last errors/warnings: - 00004.263 W: Unexpected parameters for HTTP proxy. Got host 'null' and port '0'. - 00004.265 W: The proxy will not be used. - 00010.385 W: Not a single layer for the name 'tms[22]:https://services.digitalglobe.com/earthservice/tmsaccess/tms/1.0.0/DigitalGlobe:ImageryTileService@EPSG:3857@jpg/{zoom}/{x}/{-y}.jpg?connectId=ca613e76-811f-46e7-9e1d-84f6795441c2': [] - 00010.721 W: java.io.IOException: The requested URL https://raw.githubusercontent.com/OpenSidewalks/OpenSidewalks-Schema/master/open_sidewalks.mapcss was not found - 00011.400 W: Failed to load Mappaint styles from 'https://raw.githubusercontent.com/OpenSidewalks/OpenSidewalks-Schema/master/open_sidewalks.mapcss'. Exception was: java.io.IOException: The requested URL https://raw.githubusercontent.com/OpenSidewalks/OpenSidewalks-Schema/master/open_sidewalks.mapcss was not found - 00011.401 E: java.io.IOException: The requested URL https://raw.githubusercontent.com/OpenSidewalks/OpenSidewalks-Schema/master/open_sidewalks.mapcss was not found - 00016.827 E: Handled by bug report queue: java.lang.UnsupportedClassVersionError: org/openstreetmap/josm/plugins/scripting/ScriptingPlugin 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 === REPORTED CRASH DATA === BugReportExceptionHandler#handleException: No data collected. Warning issued by: BugReportExceptionHandler#handleException === STACK TRACE === Thread: main (1) java.lang.UnsupportedClassVersionError: org/openstreetmap/josm/plugins/scripting/ScriptingPlugin 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 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at org.openstreetmap.josm.plugins.PluginClassLoader.loadClass(PluginClassLoader.java:74) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.openstreetmap.josm.plugins.PluginInformation.loadClass(PluginInformation.java:402) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugin(PluginHandler.java:810) at org.openstreetmap.josm.plugins.PluginHandler.loadPlugins(PluginHandler.java:898) at org.openstreetmap.josm.plugins.PluginHandler.loadLatePlugins(PluginHandler.java:950) at org.openstreetmap.josm.gui.MainApplication.loadLatePlugins(MainApplication.java:1227) at org.openstreetmap.josm.gui.MainApplication.mainJOSM(MainApplication.java:957) at org.openstreetmap.josm.gui.MainApplication$3.processArguments(MainApplication.java:282) at org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:742)
Attachments (0)
Change History (5)
comment:1 by , 3 years ago
Component: | Core → Plugin scripting |
---|---|
Description: | modified (diff) |
Owner: | changed from | to
Summary: | I have updated to the latest version. Version 18463 of JOSM, josm-tested.jar. I am on Windows 10 Pro. I am trying to open JOSM from the downloaded Executable Jar File . JOSM loader window opens and gets as far as Loading plug-in 'scripting'... and just stops there. I have to use the Task Manager to end the process or it will not close → java.lang.UnsupportedClassVersionError: ScriptingPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0) |
comment:3 by , 3 years ago
@Gubaer: Can you add the manifest property Plugin-Minimum-Java-Version
to your plugin? (See wiki:DevelopersGuide/DevelopingPlugins#ThemanifestfileforaJOSMplugin ).
comment:4 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in release https://github.com/Gubaer/josm-scripting-plugin/releases/tag/v0.2.1
comment:5 by , 3 years ago
As an aside for ralph.aytoun:
We are intending to move to Java 11+ (see #17858), so we are recommending that users install Java 17+ if you are not using OpenWebStart (josm.jnlp) or using the installer for Windows (Windows installer).
The main reason seems to be that the scripting plugin is not compatible with java 8, atm.
@ralph.aytoun:
Your description sounds like there is another, hidden window blocking JOSM. It is probably asking to disable the plugin, please, check all windows on all screens.