How can i use Openjfx in Intellij Idea 2019 with JRE 11.0.2?

Answered

My plugin uses few javafx classes. There are no problems to use them with all of previous versions. But  in Intellij Idea 2019 (JRE 11.0.2) they do not work.

I tried to include openjfx in my plugins .jar, but there no positive result. What is the way to use javafx now?

18 comments
Comment actions Permalink

Anton,

You can rely on JDK bundled with IDEA. It contains OpenJFX as a module. However, we do not guarantee that IDEA will ship OpenJFX in the next versions. In that case you will have to ship your own JavaFX SDK with your plugin (https://gluonhq.com/products/javafx) or switch to Swing.

With regards,
Anton.

0
Comment actions Permalink

Anton,

when i deploy my plugin with compile dependency of openjfx, i get this exception:

java.lang.NoSuchMethodError: <init>
at com.sun.glass.ui.win.WinApplication.staticScreen_getScreens(Native Method)
at com.sun.glass.ui.Screen.initScreens(Screen.java:412)
at com.sun.glass.ui.Application.lambda$run$1(Application.java:152)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
at java.base/java.lang.Thread.run(Thread.java:834)

 

even when i deploy my plugin with provided dependency, i get this exception:

java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel
at com.homework.plugin.TestEditor.<init>(TestEditor.java:44)
at com.homework.plugin.TestEditorProvider.createEditor(TestEditorProvider.java:52)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl4$8(FileEditorManagerImpl.java:854)
at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:672)
at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:685)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl4(FileEditorManagerImpl.java:959)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl3(FileEditorManagerImpl.java:780)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.lambda$openFileImpl2$4(FileEditorManagerImpl.java:762)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:212)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:154)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileImpl2(FileEditorManagerImpl.java:762)
at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.openFileWithProviders(FileEditorManagerImpl.java:693)
at com.intellij.openapi.fileEditor.ex.FileEditorManagerEx.openFile(FileEditorManagerEx.java:145)
at com.intellij.codeInsight.navigation.NavigationUtil.activatePsiElementIfOpen(NavigationUtil.java:200)
at com.intellij.codeInsight.navigation.NavigationUtil.lambda$openFileWithPsiElement$1(NavigationUtil.java:170)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:220)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:154)
at com.intellij.codeInsight.navigation.NavigationUtil.openFileWithPsiElement(NavigationUtil.java:169)
at com.intellij.ide.projectView.impl.nodes.AbstractPsiBasedNode.navigate(AbstractPsiBasedNode.java:232)
at com.intellij.util.OpenSourceUtil.navigateToSource(OpenSourceUtil.java:116)
at com.intellij.ui.AutoScrollToSourceHandler.lambda$null$2(AutoScrollToSourceHandler.java:170)
at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120)
at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:121)
at com.intellij.ui.AutoScrollToSourceHandler.lambda$scrollToSource$3(AutoScrollToSourceHandler.java:157)
at com.intellij.openapi.util.ExecutionCallback.doWhenExecuted(ExecutionCallback.java:100)
at com.intellij.openapi.util.ActionCallback.doWhenDone(ActionCallback.java:111)
at com.intellij.ui.AutoScrollToSourceHandler.scrollToSource(AutoScrollToSourceHandler.java:157)
at com.intellij.ui.AutoScrollToSourceHandler.lambda$onMouseClicked$0(AutoScrollToSourceHandler.java:128)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:315)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun$$$capture(LaterInvocator.java:435)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:419)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:403)
at java.desktop/java.awt.event.InvocationEvent.dispatch$$$capture(InvocationEvent.java:313)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
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:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:747)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:696)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
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: javafx.embed.swing.JFXPanel PluginClassLoader[com.plugin.plugin2, 3.31] com.intellij.ide.plugins.cl.PluginClassLoader@220c3b50
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:51)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 56 more

0
Comment actions Permalink

I've just tried to create a plugin with some JavaFX code and it worked for me. My steps are the following:

1) Install IDEA 2019.2 EAP
2) Set up "Intellij Platform Plugin SDK" from that IDEA.
3) In project settings, add new JDK pointing to /path/to/IDEA2019.2/jbr
4) Also set up "Internal Java Platform" as that new JDK

Does this scheme work for you?

Regards,
Anton.

0
Comment actions Permalink

No.

1. I tried to add new JDK pointing to /path/to/IDEA2019.2/jbr. But it is impossible 

i could add only /path/to/IntelliJ IDEA 192.4205.45

2. After adding /path/to/IntelliJ IDEA 192.4205.45 as Project SDK, javafx jars did not appear in my project.

3. So, i added them as maven dependency:

<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-swing</artifactId>
<version>11.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-web</artifactId>
<version>11.0.2</version>
<scope>provided</scope>
</dependency>

It does not work. I have a same result like in the previous comment.

0
Comment actions Permalink

You cannot mix IntelliJ Platform SDK defined inside IDE with additional libraries defined in Maven?!

0
Comment actions Permalink

This is not my goal. 

There is no reason to use additional libraries, if i can use IntelliJ Platform SDK  javafx classes. But i can't.

0
Comment actions Permalink

I understand. But the approach to add additional libraries via Maven is technically impossible.

0
Comment actions Permalink

Okey. But why i can't use your openjfx?

0
Comment actions Permalink

>  I tried to add new JDK pointing to /path/to/IDEA2019.2/jbr. But it is impossible

Let's try to understand why it doesn't work for you. Can you please share the About dialog info from your IDEA?
Also, may I ask you for the real path to jbr on your system? Mine is standard (I have IDEA nightly version installed):
C:\Program Files\JetBrains\IntelliJ IDEA 192.4555\jbr
Are there any suspicious exceptions in the log file?

0
Comment actions Permalink

It doesn't work with different versions of Idea. For example, this one:

or this:

And the path you can see here:

And the log history from starting IDEA to canceling SDK selection:

2019-05-30 11:13:01,755 [ 468979] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2019-05-30 11:13:01,779 [ 469003] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2019-05-30 11:13:01,784 [ 469008] INFO - ution.rmi.RemoteProcessSupport - Terminating: 53058/Maven3ServerImplbec3f2f2
2019-05-30 11:13:02,111 [ 469335] INFO - stubs.SerializationManagerImpl - START StubSerializationManager SHUTDOWN
2019-05-30 11:13:02,111 [ 469335] INFO - stubs.SerializationManagerImpl - END StubSerializationManager SHUTDOWN
2019-05-30 11:13:02,111 [ 469335] INFO - il.indexing.FileBasedIndexImpl - START INDEX SHUTDOWN
2019-05-30 11:13:02,223 [ 469447] INFO - il.indexing.FileBasedIndexImpl - END INDEX SHUTDOWN
2019-05-30 11:13:02,224 [ 469448] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2019-05-30 11:13:02,258 [ 469482] INFO - Types.impl.FileTypeManagerImpl - FileTypeManager: 67 auto-detected files
Elapsed time on auto-detect: 113 ms
2019-05-30 11:13:02,266 [ 469490] INFO - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 0
2019-05-30 11:13:02,267 [ 469491] INFO - newvfs.persistent.PersistentFS - VFS dispose started
2019-05-30 11:13:02,322 [ 469546] INFO - newvfs.persistent.PersistentFS - VFS dispose completed
2019-05-30 11:13:02,324 [ 469548] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE SHUTDOWN ------------------------------------------------------
2019-05-30 11:13:02,325 [ 469549] INFO - org.jetbrains.io.BuiltInServer - web server stopped
2019-05-30 11:13:04,840 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2019-05-30 11:13:04,871 [ 31] INFO - #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IU-191.6183.87, 27 Mar 2019 07:38)
2019-05-30 11:13:04,871 [ 31] INFO - #com.intellij.idea.Main - OS: Windows 10 (10.0, amd64)
2019-05-30 11:13:04,871 [ 31] INFO - #com.intellij.idea.Main - JRE: 1.8.0_202-release-1483-b39 (JetBrains s.r.o)
2019-05-30 11:13:04,871 [ 31] INFO - #com.intellij.idea.Main - JVM: 25.202-b39 (OpenJDK 64-Bit Server VM)
2019-05-30 11:13:04,872 [ 32] INFO - #com.intellij.idea.Main - JVM Args: -Xms128m -Xmx750m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -Djb.vmOptionsFile=C:\Program Files\JetBrains\IntelliJ IDEA 2019.1\bin\idea64.exe.vmoptions -Didea.jre.check=true -Dide.native.launcher=true -Didea.paths.selector=IntelliJIdea2019.1 -XX:ErrorFile=C:\Users\a.kashnikov\java_error_in_idea_%p.log -XX:HeapDumpPath=C:\Users\a.kashnikov\java_error_in_idea.hprof
2019-05-30 11:13:04,873 [ 33] INFO - #com.intellij.idea.Main - ext: C:\Program Files\JetBrains\IntelliJ IDEA 2019.1\jre64\lib\ext: [access-bridge-64.jar, cldrdata.jar, dnsns.jar, jaccess.jar, jfxrt.jar, localedata.jar, meta-index, nashorn.jar, sunec.jar, sunjce_provider.jar, sunmscapi.jar, sunpkcs11.jar, zipfs.jar]
2019-05-30 11:13:04,873 [ 33] INFO - #com.intellij.idea.Main - charsets: JNU=Cp1252 file=Cp1252
2019-05-30 11:13:04,913 [ 73] INFO - #com.intellij.idea.Main - JNA library (64-bit) loaded in 40 ms
2019-05-30 11:13:04,915 [ 75] INFO - penapi.util.io.win32.IdeaWin32 - Native filesystem for Windows is operational
2019-05-30 11:13:04,993 [ 153] INFO - #com.intellij.util.ui.JBUI - User scale factor: 1.0
2019-05-30 11:13:05,915 [ 1075] INFO - llij.ide.plugins.PluginManager - load plugin descriptors took 382 ms
2019-05-30 11:13:06,124 [ 1284] INFO - .intellij.idea.IdeaApplication - CPU cores: 4; ForkJoinPool.commonPool: java.util.concurrent.ForkJoinPool@5039c60c[Running, parallelism = 3, size = 0, active = 0, running = 0, steals = 0, tasks = 0, submissions = 0]; factory: com.intellij.concurrency.IdeaForkJoinWorkerThreadFactory@3cec6986
2019-05-30 11:13:06,153 [ 1313] INFO - #com.intellij.util.ui.JBUI - System scale factor: 1.0 (JRE-managed HiDPI)
2019-05-30 11:13:06,697 [ 1857] INFO - llij.ide.plugins.PluginManager - load plugin descriptors took 380 ms
2019-05-30 11:13:06,874 [ 2034] INFO - llij.ide.plugins.PluginManager - 133 plugins initialized in 558 ms
2019-05-30 11:13:06,874 [ 2034] INFO - llij.ide.plugins.PluginManager - Loaded bundled plugins: ASP (191.6183.87), Android Support (10.3.3), AngularJS (191.6183.87), Ant Support (191.6183.87), Application Servers View (191.6183.87), AspectJ Support (191.6183.87), Bytecode Viewer (191.6183.87), CFML Support (191.6183.87), CSS Support (191.6183.87), Cloud Foundry integration (191.6183.87), CloudBees integration (191.6183.87), CoffeeScript (191.6183.87), Copyright (191.6183.87), Coverage (191.6183.87), Cucumber for Groovy (191.6183.87), Cucumber for Java (191.6183.87), DSM Analysis (191.6183.87), Database Tools and SQL (191.6183.87), Docker integration (191.6183.87), Eclipse Integration (191.6183.87), EditorConfig (191.6183.87), Emma (191.6183.87), Flash/Flex Support (191.6183.87), FreeMarker support (191.6183.87), GWT Support (191.6183.87), Geronimo Integration (191.6183.87), Gherkin (191.6183.87), Git Integration (191.6183.87), GitHub (191.6183.87), GlassFish Integration (191.6183.87), Google App Engine (191.6183.87), Gradle (191.6183.87), Grails (191.6183.87), Groovy (191.6183.87), Guice (191.6183.87), HTML Tools (191.6183.87), HTTP Client (191.6183.87), Haml (191.6183.87), Heroku integration (191.6183.87), Hibernate Support (191.6183.87), I18n for Java (191.6183.87), IDE Settings Sync (191.6183.87), IDEA CORE (191.6183.87), IntelliJ Configuration Script (191.6183.87), IntelliLang (191.6183.87), J2ME (191.6183.87), JBoss Arquillian Support (191.6183.87), JBoss Drools Support (191.6183.87), JBoss Frameworks Base Support (191.6183.87), JBoss Integration (191.6183.87), JBoss Seam Pageflow Support (191.6183.87), JBoss Seam Pages Support (191.6183.87), JBoss Seam Support (191.6183.87), JBoss jBPM (191.6183.87), JSR45 Integration (1.0), JUnit (191.6183.87), Java Bytecode Decompiler (191.6183.87), Java EE: Batch Applications (191.6183.87), Java EE: Bean Validation Support (191.6183.87), Java EE: Contexts and Dependency Injection (191.6183.87), Java EE: EJB, JPA, Servlets (191.6183.87), Java EE: JMS, JSON Processing, Concurrency, Transaction (191.6183.87), Java EE: Java Server Faces (191.6183.87), Java EE: RESTful Web Services (JAX-RS) (191.6183.87), Java EE: Web Services (JAX-WS) (191.6183.87), Java EE: WebSockets (191.6183.87), Java Server Pages (JSP) Integration (191.6183.87), Java Stream Debugger (191.6183.87), JavaFX (191.6183.87), JavaScript Debugger (191.6183.87), JavaScript Intention Power Pack (191.6183.87), JavaScript Support (191.6183.87), Jetty Integration (191.6183.87), Kotlin (1.3.21-release-IJ2019.1-2), Less support (191.6183.87), Markdown support (191.6183.87), Maven Integration (191.6183.87), Maven Integration Extension (191.6183.87), Mercurial Integration (191.6183.87), OpenShift integration (191.6183.87), Osmorc (191.6183.87), Perforce Integration (191.6183.87), Performance Testing (191.6183.87), Persistence Frameworks Support (191.6183.87), Playframework Support (191.6183.87), Plugin DevKit (191.6183.87), Properties Support (191.6183.87), Reactor framework support (191.6183.87), Refactor-X (191.6183.87), Remote Hosts Access (191.6183.87), Resin Integration (191.6183.87), SSH Remote Run (191.6183.87), Sass support (191.6183.87), Settings Repository (191.6183.87), Smali Support (191.6183.87), Spring AOP/@AspectJ (191.6183.87), Spring Batch (191.6183.87), Spring Boot (191.6183.87), Spring Data (191.6183.87), Spring Integration Patterns (191.6183.87), Spring MVC (191.6183.87), Spring OSGi (191.6183.87), Spring Security (191.6183.87), Spring Support (191.6183.87), Spring Web Flow (191.6183.87), Spring Web Services (191.6183.87), Spring WebSocket (191.6183.87), Spy-js (191.6183.87), Struts 1.x (191.6183.87), Struts 2 (191.6183.87), Stylus support (191.6183.87), Subversion (191.6183.87), Tapestry support (191.6183.87), Task Management (191.6183.87), Terminal (191.6183.87), TestNG-J (191.6183.87), Thymeleaf (191.6183.87), Time Tracking (191.6183.87), Tomcat and TomEE Integration (191.6183.87), UI Designer (191.6183.87), UML Support (191.6183.87), Vaadin Support (191.6183.87), Velocity support (191.6183.87), W3C Validators (191.6183.87), WSL Support Framework (191.6183.87), WebLogic Integration (191.6183.87), WebSphere Integration (191.6183.87), XPathView + XSLT Support (191.6183.87), XSLT-Debugger (191.6183.87), YAML (191.6183.87), ZKM-Unscramble (191.6183.87), dmServer Support (191.6183.87), tslint (191.6183.87)
2019-05-30 11:13:08,004 [ 3164] INFO - cloudConfig.CloudConfigManager - === Start: JBA_NOT_CONNECTED ===
2019-05-30 11:13:08,084 [ 3244] INFO - pi.util.registry.RegistryState - Registry values changed by user:
2019-05-30 11:13:08,084 [ 3244] INFO - pi.util.registry.RegistryState - git.explicit.commit.renames.prohibit.multiple.calls = false
2019-05-30 11:13:08,094 [ 3254] INFO - pi.util.registry.RegistryState - Experimental features enabled for user: inline.browse.button, linux.native.menu, recent.and.edited.files.together
2019-05-30 11:13:08,148 [ 3308] INFO - ellij.util.io.PagedFileStorage - lower=100; upper=500; buffer=10; max=705
2019-05-30 11:13:08,281 [ 3441] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files\JetBrains\IntelliJ IDEA 2019.1\bin\fsnotifier64.exe
2019-05-30 11:13:08,315 [ 3475] INFO - pl.local.NativeFileWatcherImpl - Native file watcher is operational.
2019-05-30 11:13:09,189 [ 4349] INFO - til.net.ssl.CertificateManager - Default SSL context initialized
2019-05-30 11:13:09,197 [ 4357] WARN - com.intellij.util.xmlb.Binding - no accessors for interface com.intellij.openapi.extensions.PluginDescriptor
2019-05-30 11:13:09,222 [ 4382] INFO - rains.ide.BuiltInServerManager - built-in server started, port 63342
2019-05-30 11:13:09,244 [ 4404] INFO - gs.impl.UpdateCheckerComponent - channel: release
2019-05-30 11:13:09,506 [ 4666] INFO - il.indexing.FileBasedIndexImpl - Index exts enumerated:221, number of extensions:82
2019-05-30 11:13:09,516 [ 4676] INFO - il.indexing.FileBasedIndexImpl - Index scheduled:9
2019-05-30 11:13:09,571 [ 4731] INFO - tellij.psi.stubs.StubIndexImpl - All stub exts enumerated:32, number of extensions:124
2019-05-30 11:13:09,572 [ 4732] INFO - tellij.psi.stubs.StubIndexImpl - stub exts update scheduled:0
2019-05-30 11:13:10,357 [ 5517] INFO - plication.impl.ApplicationImpl - 90 application components initialized in 4044ms
2019-05-30 11:13:10,375 [ 5535] INFO - .intellij.idea.IdeaApplication - App initialization took 6552 ms
2019-05-30 11:13:10,654 [ 5814] INFO - m.intellij.ui.mac.touchbar.NST - OS doesn't support touchbar, skip nst loading
2019-05-30 11:13:11,773 [ 6933] INFO - j.ide.ui.OptionsTopHitProvider - 2612 ms spent to cache options in application
2019-05-30 11:13:11,773 [ 6933] INFO - .openapi.application.Preloader - com.intellij.ide.ui.OptionsTopHitProvider$Activity took 2611 ms
2019-05-30 11:13:12,131 [ 7291] INFO - pl$FileIndexDataInitialization - Initialization done:2591
2019-05-30 11:13:12,232 [ 7392] INFO - com.intellij.ide.ui.UISettings - Loaded: fontSize=12, fontScale=1.0; restored: fontSize=12, fontScale=1.0
2019-05-30 11:13:12,325 [ 7485] INFO - exImpl$StubIndexInitialization - Initialization done:193
2019-05-30 11:13:12,707 [ 7867] INFO - CompilerWorkspaceConfiguration - Available processors: 4
2019-05-30 11:13:12,715 [ 7875] INFO - pl.projectlevelman.NewMappings - VCS Root: [] - [<Project>]
2019-05-30 11:13:12,716 [ 7876] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [C:/Project/plugin]
2019-05-30 11:13:13,329 [ 8489] INFO - ellij.project.impl.ProjectImpl - 194 project components initialized in 2211 ms
2019-05-30 11:13:13,704 [ 8864] INFO - le.impl.ModuleManagerComponent - 11 module(s) loaded in 373 ms
2019-05-30 11:13:13,922 [ 9082] INFO - j.ide.script.IdeStartupScripts - 0 startup script(s) found
2019-05-30 11:13:14,045 [ 9205] INFO - rojectCodeStyleSettingsManager - Initialized from default code style settings.
2019-05-30 11:13:14,124 [ 9284] INFO - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2019-05-30 11:13:15,457 [ 10617] INFO - PerformancePlugin - Performance Plugin is in silent mode
2019-05-30 11:13:15,913 [ 11073] INFO - ellij.project.impl.ProjectImpl - 20 project components initialized in 6 ms
2019-05-30 11:13:16,149 [ 11309] INFO - tartup.impl.StartupManagerImpl - EditorHistoryManagerStartUpActivity run in 252ms under project opening modal progress
2019-05-30 11:13:16,224 [ 11384] INFO - llij.database.util.SqlDialects - SQL dialects initialized in 39 ms
2019-05-30 11:13:16,242 [ 11402] INFO - .openapi.application.Preloader - com.intellij.openapi.actionSystem.impl.ActionPreloader took 4469 ms
2019-05-30 11:13:19,569 [ 14729] INFO - .openapi.application.Preloader - com.intellij.ide.ui.search.SearchableOptionPreloader took 3325 ms
2019-05-30 11:13:20,403 [ 15563] INFO - .openapi.application.Preloader - com.intellij.codeInsight.completion.CompletionPreloader took 830 ms
2019-05-30 11:13:20,413 [ 15573] INFO - .openapi.application.Preloader - com.intellij.ide.actions.GotoClassPresentationUpdater took 6 ms
2019-05-30 11:13:21,117 [ 16277] INFO - tartup.impl.StartupManagerImpl - OpenFilesActivity run in 4947ms under project opening modal progress
2019-05-30 11:13:21,195 [ 16355] INFO - ge.ExternalProjectsDataStorage - Loaded external projects data in 3 millis
2019-05-30 11:13:21,357 [ 16517] INFO - .diagnostic.PerformanceWatcher - Post-startup activities under progress took 5583ms; general responsiveness: ok; EDT responsiveness: ok
2019-05-30 11:13:21,441 [ 16601] INFO - cloudConfig.CloudConfigManager - === Start.updateInitStatus ===
2019-05-30 11:13:21,444 [ 16604] INFO - cloudConfig.CloudConfigManager - === StatusBar.update create ===
2019-05-30 11:13:21,446 [ 16606] INFO - cloudConfig.CloudConfigManager - === calculateInitStatus ===
2019-05-30 11:13:21,671 [ 16831] INFO - j.ide.ui.OptionsTopHitProvider - 225 ms spent on EDT to cache options in application
2019-05-30 11:13:21,769 [ 16929] INFO - .cloudConfig.CloudConfigClient - === Get cloud config URL: https://cloudconfig.jetbrains.com/cloudconfig/files ===
2019-05-30 11:13:22,126 [ 17286] INFO - tartup.impl.StartupManagerImpl - C:/Project/plugin/.idea case-sensitivity: expected=false actual=false
2019-05-30 11:13:22,163 [ 17323] INFO - cloudConfig.CloudConfigManager - === calculateInitStatus.value: JBA_NOT_CONNECTED ===
2019-05-30 11:13:22,184 [ 17344] INFO - #git4idea.commands.GitHandler - [.] git version
2019-05-30 11:13:22,402 [ 17562] INFO - Json.PackageJsonUpdateNotifier - processPackageJsonFiles [file://C:/Project/plugin/tsAdminPanel/package.json, file://C:/Project/plugin/tsJrSite/package.json]
2019-05-30 11:13:22,536 [ 17696] INFO - cloudConfig.CloudConfigManager - === End.updateInitStatus ===
2019-05-30 11:13:22,900 [ 18060] INFO - tor.impl.FileEditorManagerImpl - Project opening took 12100 ms
2019-05-30 11:13:23,124 [ 18284] INFO - #git4idea.commands.GitHandler - git version 2.20.1.windows.1
2019-05-30 11:13:23,556 [ 18716] INFO - ea.config.GitExecutableManager - Git version for C:\Program Files\Git\cmd\git.exe : 2.20.1
2019-05-30 11:13:23,806 [ 18966] INFO - pl.projectlevelman.NewMappings - VCS Root: [Git] - [C:/Project/plugin]
2019-05-30 11:13:25,905 [ 21065] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 10076ms; general responsiveness: ok; EDT responsiveness: 1/10 sluggish, 1/10 very slow
2019-05-30 11:13:29,951 [ 25111] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 4044ms; general responsiveness: ok; EDT responsiveness: ok
2019-05-30 11:13:29,952 [ 25112] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 8 files to update
2019-05-30 11:13:30,521 [ 25681] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 569ms; general responsiveness: ok; EDT responsiveness: ok
2019-05-30 11:13:30,737 [ 25897] INFO - j.ide.ui.OptionsTopHitProvider - 115 ms spent to cache options in project
2019-05-30 11:13:30,737 [ 25897] INFO - tartup.impl.StartupManagerImpl - Some post-startup activities freeze UI for noticeable time. Please consider making them DumbAware to do them in background under modal progress, or just making them faster to speed up project opening.
2019-05-30 11:13:30,737 [ 25897] INFO - tartup.impl.StartupManagerImpl - Activity run in 115ms on UI thread
2019-05-30 11:13:30,749 [ 25909] WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider
2019-05-30 11:13:30,798 [ 25958] INFO - cloudConfig.CloudConfigManager - === StatusBar.start another widget: com.intellij.cloudConfig.StatusBarInfoManager$InfoComponent@565d5dcf ===
2019-05-30 11:13:31,108 [ 26268] INFO - j.ide.plugins.RepositoryHelper - using cached plugin list (updated at 30.05.2019 11:07)
2019-05-30 11:13:31,824 [ 26984] INFO - tartup.impl.StartupManagerImpl - CreateKotlinSdkActivity run in 987ms on UI thread
2019-05-30 11:13:31,933 [ 27093] INFO - tartup.impl.StartupManagerImpl - MaintenanceActivity run in 108ms on UI thread
2019-05-30 11:13:32,149 [ 27309] INFO - j.ide.ui.OptionsTopHitProvider - 145 ms spent on EDT to cache options in project
2019-05-30 11:13:44,885 [ 40045] INFO - .openapi.util.LowMemoryWatcher - Low memory signal received: afterGc=false

0
Comment actions Permalink

You're trying to add a JDK (JBR) as "Intellij Platform Plugin SDK" and this won't work. Please do the following:

1) Add JDK (the option selected on the screenshot below):

C:\Program Files\JetBrains\IntelliJ IDEA 192.4205.45\jbr



2) Add "Intellij Platform Plugin SDK"

C:\Program Files\JetBrains\IntelliJ IDEA 192.4205.45

3) Select the "Intellij Platform Plugin SDK" you've added, and set the new JBR for it as "Internal Java Platform"

0
Comment actions Permalink

Thank you. I have done it.

But i still got exception, after launching IDEA (JDK:11.0.2) with my plugin:

2019-05-30 16:02:56,608 [ 10660] ERROR - llij.ide.plugins.PluginManager - <init>
java.lang.NoSuchMethodError: <init>
at javafx.graphics/com.sun.glass.ui.win.WinApplication.staticScreen_getScreens(Native Method)
at javafx.graphics/com.sun.glass.ui.Screen.initScreens(Unknown Source)
at javafx.graphics/com.sun.glass.ui.Application.lambda$run$1(Unknown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
2019-05-30 16:02:56,610 [ 10662] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 2019.1.3 Build #IC-191.7479.19
2019-05-30 16:02:56,610 [ 10662] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.2; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2019-05-30 16:02:56,610 [ 10662] ERROR - llij.ide.plugins.PluginManager - OS: Windows 10
2019-05-30 16:02:56,612 [ 10664] ERROR - llij.ide.plugins.PluginManager - Last Action:
2019-05-30 16:02:56,613 [ 10665] ERROR - llij.ide.plugins.PluginManager - <init>
java.lang.NoSuchMethodError: <init>
at javafx.graphics/com.sun.glass.ui.win.WinApplication.staticScreen_getScreens(Native Method)
at javafx.graphics/com.sun.glass.ui.Screen.initScreens(Unknown Source)
at javafx.graphics/com.sun.glass.ui.Application.lambda$run$1(Unknown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
2019-05-30 16:02:56,613 [ 10665] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 2019.1.3 Build #IC-191.7479.19
2019-05-30 16:02:56,613 [ 10665] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.2; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2019-05-30 16:02:56,613 [ 10665] ERROR - llij.ide.plugins.PluginManager - OS: Windows 10
2019-05-30 16:02:56,613 [ 10665] ERROR - llij.ide.plugins.PluginManager - Last Action:
2019-05-30 16:02:56,613 [ 10665] ERROR - llij.ide.plugins.PluginManager - null
java.lang.NullPointerException
at javafx.graphics/com.sun.prism.d3d.D3DPipeline.getAdapterOrdinal(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.assignScreensAdapters(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runToolkit(Unknown Source)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$startup$10(Unknown Source)
at javafx.graphics/com.sun.glass.ui.Application.lambda$run$1(Unknown Source)
at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
2019-05-30 16:02:56,613 [ 10665] ERROR - llij.ide.plugins.PluginManager - IntelliJ IDEA 2019.1.3 Build #IC-191.7479.19
2019-05-30 16:02:56,613 [ 10665] ERROR - llij.ide.plugins.PluginManager - JDK: 11.0.2; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2019-05-30 16:02:56,613 [ 10665] ERROR - llij.ide.plugins.PluginManager - OS: Windows 10
2019-05-30 16:02:56,614 [ 10666] ERROR - llij.ide.plugins.PluginManager - Last Action: 2019-05-30 16:03:21,586 [ 35638] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 1

0
Comment actions Permalink

When you launch IDEA with your plugin, what's the exact JDK 11.0.2 you have? Can you post the About dialog of that running IDEA instance? It should be JetBrains JDK, not Oracle, nor OpenJDK.

0
Comment actions Permalink

Thanks, JDK is correct.
Can you please then add this VM option to track class loading:
-verbose:class
If you run the plugin from within IDEA (not a standalone run), then you can add the option in Run > Edit configurations > VM options. Then run the plugin and try to find WinApplication in the output. It looks like this in my case:
[24.353s][info][class,load ] com.sun.glass.ui.win.WinApplication source: jrt:/javafx.graphics
Please post your line.

0
Comment actions Permalink

It is some kind of magic! Now everything is working! But i am sure, it didn't work few hours ago. I even tried on my colleague's computer. So let's don't close this thread for some days. I have idea, why it is working. Tomorrow i will check my theory and inform you.

0
Comment actions Permalink

Unbelievable! I have found the source of the problem. The problem was in JRE_HOME variable! 

It was difficult to find this answer, because everything works perfectly even with invalid JRE_HOME value. So, there is only one requirement to JRE_HOME variable: it must not be pointed to lower then 11 version of JRE.

Guys, sorry that searching of the problem took so much time and thank you!

And one more question: Is it okey that my plugin built on java 8 (with javafx classes) works perfectly under IDEA 2019.2 (jre 11.0.3)? 

0
Comment actions Permalink

Great, thanks for the finding! We'll think what we can do about it. As to compiling with jdk8 - it's ok.

0

Please sign in to leave a comment.