I have JDK 18.0.1.1 installed at path "C:\Program Files\Java\jdk-18.0.1.1"
I have JAVA_HOME variable set to the same path
When I put the path into stencyl it always turns red and gives me an error log:
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.replaceSelection(Unknown Source)
at java.desktop/javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(Unknown Source)
at java.desktop/javax.swing.SwingUtilities.notifyAction(Unknown Source)
at java.desktop/javax.swing.JComponent.processKeyBinding(Unknown Source)
at java.desktop/javax.swing.JComponent.processKeyBindings(Unknown Source)
at java.desktop/javax.swing.JComponent.processKeyEvent(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.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(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.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)
I looked through other posts and online but nothing worked. I have had this problem before but I forgot how I fixed it.