IntelliJ Plugin support for Java 9?

Is it already possible to write plugins which are runnable with Java 9?

I am running IntelliJ IDEA without a bundled JDK, but with a custom JDK (Java JDK 9.0.4), e.g. by setting the path in config.home/idea64.exe.jdk.

When starting IDEA there are several Exceptions in the log. Regarding my plugin there is the following Exception:

Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException PluginClassLoader[my-plugin-here] com.intellij.ide.plugins.cl.PluginClassLoader@5719f5e7
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:63)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
... 74 more

In my opinion you would have to add a "--add-module java.xml.bin" to the java command line. However, how could I add such a parameter to my plugin? Is there a specific property in the plugin.xml already? Or how could I develop a plugin which works well with Java 9?

Thanks for your help...

1

请先登录再写评论。