Can PhpStorm be booted on JDK 9 or 10?

I tried to install JDK 9 (then tried the same with JDK 10) and set it as a boot JDK of PhpStorm.

When I restarted PhpStorm, the splashscreen with loading bar appears, the loading bar reaches the right side of the splashscreen like it is booting normally, but then it hangs in this state with minimal or no CPU load on the PhpStorm's process. It remains in this state even for several minutes until I force quit it.

I want to try latest JDK versions in hope for optimizations, as PhpStorm is sometimes laggy especially when I use a 4K display.

My question is - can PhpStorm 2018.1 be currently run on JDK 9 or 10 and if so, how to figure out why mine hangs?

My configuration:

  • MacBook Pro Early 2015
  • MacOS 10.13.4 
  • PhpStorm 2018.1.2 build #PS-181.4668.78 (April 25, 2018), installed via JetBrains Toolbox

idea.log ends with:

java.lang.NoClassDefFoundError: com/apple/eawt/OpenURIHandler
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1009)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:870)
at com.intellij.util.lang.UrlClassLoader._defineClass(UrlClassLoader.java:278)
at com.intellij.util.lang.UrlClassLoader.defineClass(UrlClassLoader.java:274)
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:228)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
at com.intellij.ui.mac.MacMainFrameDecorator.c(MacMainFrameDecorator.java:281)
at com.intellij.ui.mac.MacMainFrameDecorator.<init>(MacMainFrameDecorator.java:265)
at com.intellij.openapi.wm.impl.IdeFrameDecorator.decorate(IdeFrameDecorator.java:53)
at com.intellij.openapi.wm.impl.IdeFrameImpl.<init>(IdeFrameImpl.java:139)
at com.intellij.openapi.wm.impl.WindowManagerImpl.showFrame(WindowManagerImpl.java:449)
at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:343)
at com.intellij.idea.IdeaApplication.b(IdeaApplication.java:198)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195)
at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:198)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.intellij.idea.MainImpl$1$1.a(MainImpl.java:64)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
at java.desktop/java.awt.EventQueue.access$600(EventQueue.java:97)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:374)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.ClassNotFoundException: com.apple.eawt.OpenURIHandler
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:224)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:566)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 37 more
2018-05-08 13:20:40,658 [ 8538] ERROR - llij.ide.plugins.PluginManager - PhpStorm 2018.1.2 Build #PS-181.4668.78
2018-05-08 13:20:40,658 [ 8538] ERROR - llij.ide.plugins.PluginManager - JDK: 10.0.1
2018-05-08 13:20:40,659 [ 8539] ERROR - llij.ide.plugins.PluginManager - VM: Java HotSpot(TM) 64-Bit Server VM
2018-05-08 13:20:40,660 [ 8540] ERROR - llij.ide.plugins.PluginManager - Vendor: Oracle Corporation
2018-05-08 13:20:40,660 [ 8540] ERROR - llij.ide.plugins.PluginManager - OS: Mac OS X
2018-05-08 13:20:40,660 [ 8540] ERROR - llij.ide.plugins.PluginManager - Last Action:
2018-05-08 13:20:40,679 [ 8559] INFO - cloudConfig.CloudConfigManager - === Start.updateInitStatus ===
2018-05-08 13:20:40,680 [ 8560] INFO - cloudConfig.CloudConfigManager - === calculateInitStatus ===
2018-05-08 13:20:40,822 [ 8702] INFO - pl$FileIndexDataInitialization - Initialization done:952
2018-05-08 13:20:40,933 [ 8813] INFO - exImpl$StubIndexInitialization - Initialization done:111
2018-05-08 13:20:41,097 [ 8977] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2018-05-08 13:20:41,099 [ 8979] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=16, fontScale=1.0; restored: fontSize=16, fontScale=1.0
2018-05-08 13:20:41,229 [ 9109] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=18, fontScale=1.0; restored: fontSize=18, fontScale=1.0
2018-05-08 13:20:41,230 [ 9110] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2018-05-08 13:20:41,232 [ 9112] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=14, fontScale=null; restored: fontSize=14, fontScale=1.0
2018-05-08 13:20:41,232 [ 9112] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=null; restored: fontSize=12, fontScale=1.0
2018-05-08 13:20:41,254 [ 9134] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=18, fontScale=null; restored: fontSize=18, fontScale=1.0
2018-05-08 13:20:41,301 [ 9181] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=16, fontScale=1.0; restored: fontSize=16, fontScale=1.0
2018-05-08 13:20:41,302 [ 9182] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2018-05-08 13:20:41,356 [ 9236] INFO - .cloudConfig.CloudConfigClient - === Get cloud config URL: https://cloudconfig.jetbrains.com/cloudconfig/files ===
2018-05-08 13:20:41,679 [ 9559] INFO - cloudConfig.CloudConfigManager - === calculateInitStatus.value: JBA_NOT_CONNECTED ===
2018-05-08 13:20:42,028 [ 9908] INFO - j.ide.ui.OptionsTopHitProvider - 1326 ms spent to cache options in application
2018-05-08 13:20:42,071 [ 9951] INFO - cloudConfig.CloudConfigManager - === End.updateInitStatus ===
2018-05-08 13:20:42,262 [ 10142] INFO - .openapi.application.Preloader - Finished preloading com.intellij.openapi.actionSystem.impl.ActionPreloader@3221715e
2018-05-08 13:20:43,012 [ 10892] INFO - ellij.project.impl.ProjectImpl - 22 project components initialized in 173 ms
2018-05-08 13:20:43,016 [ 10896] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.ui.search.SearchableOptionPreloader@b594cf6
2018-05-08 13:20:43,365 [ 11245] INFO - .openapi.application.Preloader - Finished preloading com.intellij.codeInsight.completion.CompletionPreloader@313c2014
2018-05-08 13:20:43,373 [ 11253] INFO - .openapi.application.Preloader - Finished preloading com.intellij.ide.actions.GotoClassPresentationUpdater@1f6dc44f
1 comment

Hello,

In JDK 9 build there were issues with methods not available in Java 8 (which PhpStorm is written in).

Please check https://youtrack.jetbrains.com/issue/IDEA-179481 for more details and workarounds.

0

Please sign in to leave a comment.