[SOLVED] Help Installing Java - Error log attached

Zedek

  • Posts: 20
Hi guys,

I tried to install Java. Downloaded the latest from a link in another Stencyl thread. Installed it and then Pointed Stencyl to it through the Publish > Web option. It gave me this error.

java.lang.IllegalArgumentException: invalid version "18.0.1.1": invalid format
   at misc.Version.assertSame(Version.java:184)
   at misc.Version.<init>(Version.java:156)
   at stencyl.sw.util.platform.JDK.getJDKVersion(JDK.java:293)
   at stencyl.sw.prefs.ToolsPage.lambda$createToolsPage$0(ToolsPage.java:64)
   at com.polydes.common.data.types.builtin.FileType$FileEditor$1.update(FileType.java:217)
   at com.polydes.common.comp.utils.DocumentAdapter.innerUpdate(DocumentAdapter.java:30)
   at com.polydes.common.comp.utils.DocumentAdapter.insertUpdate(DocumentAdapter.java:34)
   at java.desktop/javax.swing.text.AbstractDocument.fireInsertUpdate(Unknown Source)
   at java.desktop/javax.swing.text.AbstractDocument.handleInsertString(Unknown Source)
   at java.desktop/javax.swing.text.AbstractDocument.insertString(Unknown Source)
   at java.desktop/javax.swing.text.PlainDocument.insertString(Unknown Source)
   at java.desktop/javax.swing.text.AbstractDocument.replace(Unknown Source)
   at java.desktop/javax.swing.text.JTextComponent.setText(Unknown Source)
   at com.polydes.common.data.types.builtin.FileType$FileEditor.updateFileInfo(FileType.java:241)
   at com.polydes.common.data.types.builtin.FileType$FileEditor.lambda$new$0(FileType.java:194)
   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.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(Native Method)
   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(Native Method)
   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.pumpEventsForFilter(Unknown Source)
   at java.desktop/java.awt.WaitDispatchSupport$2.run(Unknown Source)
   at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
   at java.desktop/java.awt.WaitDispatchSupport$4.run(Unknown Source)
   at java.base/java.security.AccessController.doPrivileged(Native Method)
   at java.desktop/java.awt.WaitDispatchSupport.enter(Unknown Source)
   at java.desktop/java.awt.Dialog.show(Unknown Source)
   at java.desktop/java.awt.Component.show(Unknown Source)
   at java.desktop/java.awt.Component.setVisible(Unknown Source)
   at java.desktop/java.awt.Window.setVisible(Unknown Source)
   at java.desktop/java.awt.Dialog.setVisible(Unknown Source)
   at stencyl.sw.prefs.PreferencesDialog.displayToolsPage(PreferencesDialog.java:314)
   at stencyl.sw.util.platform.android.AndroidToolchain.openPathsWindow(AndroidToolchain.java:247)
   at stencyl.sw.util.platform.JDK.checkVersionAndPromptForUpgrade(JDK.java:332)
   at stencyl.sw.app.tasks.buildgame.HTML5GameBuilder.buildRequirementsMet(HTML5GameBuilder.java:34)
   at stencyl.sw.app.tasks.buildgame.GameBuilder.run(GameBuilder.java:126)
   at stencyl.sw.app.tasks.buildgame.GameBuilder.access$000(GameBuilder.java:53)
   at stencyl.sw.app.tasks.buildgame.GameBuilder$1.callWhenDone(GameBuilder.java:117)
   at stencyl.sw.app.tasks.StencylWorker.done(StencylWorker.java:90)
   at stencyl.sw.app.tasks.SaveGameTask.done(SaveGameTask.java:58)
   at java.desktop/javax.swing.SwingWorker$5.run(Unknown Source)
   at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
   at java.desktop/sun.swing.AccumulativeRunnable.run(Unknown Source)
   at java.desktop/javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown Source)
   at java.desktop/javax.swing.Timer.fireActionPerformed(Unknown Source)
   at java.desktop/javax.swing.Timer$DoPostEvent.run(Unknown Source)
   at java.desktop/java.awt.event.InvocationEvent.dispatch(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(Native Method)
   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)


Any ideas what I've done wrong?

« Last Edit: June 17, 2022, 11:13:58 pm by Zedek »

Justin

  • *
  • Posts: 4634
It doesn't understand the four-part Java version (18.0.1.1). That's a bug in Stencyl, not something wrong you did.

However, for the version of Stencyl that you're using, Java 18 is too new. You'll need an older version of Java for the Android/HTML5 targets. Try Java 11.

https://adoptium.net/temurin/releases?version=11
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

Zedek

  • Posts: 20
Amazing. Thank you Justin. I'll try that now.

Zedek

  • Posts: 20
@Justin. Worked perfect cheers. I wanted to send it to a friend but you can't run locally because of CORS. So I'll setup a firebase somewhere :)