Running JavaFX-11 applications from within Eclipse fails
Nir Lisker
nlisker at gmail.com
Sun Oct 21 19:15:23 UTC 2018
Ah, I didn't realize you were talking about Java 8.
On Sun, Oct 21, 2018 at 10:09 PM Tom Schindl <tom.schindl at bestsolution.at>
wrote:
> Well:
> - Launch Eclipse 2018-09 with Orcale-Java-8
> - Create a maven-enabled project (I think this is important because if
> you launch with the FX-SDK on the command line you won't run into
> this)
> - Boom
>
> Tom
>
> On 21.10.18 11:35, Nir Lisker wrote:
> > Hi Tom,
> >
> > Iv'e never gotten this error. How do you reproduce this?
> >
> > - Nir
> >
> > On Thu, Oct 18, 2018 at 1:39 PM Tom Schindl <tom.schindl at bestsolution.at
> > <mailto:tom.schindl at bestsolution.at>> wrote:
> >
> > Hi,
> >
> > I just wanted to make you aware that if you run a JavaFX-11
> application
> > from within Eclipse it is very likely that you'll get an error like
> > this.
> >
> > > Exception in thread "WindowsNativeRunloopThread"
> > 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(Screen.java:412)
> > > at
> >
> javafx.graphics/com.sun.glass.ui.Application.lambda$run$1(Application.java:152)
> > > at
> > javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native
> > Method)
> > > at
> >
> javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
> > > at java.base/java.lang.Thread.run(Thread.java:834)
> > > Exception in thread "JavaFX Application Thread"
> > java.lang.NullPointerException
> > > at
> >
> javafx.graphics/com.sun.prism.d3d.D3DPipeline.getAdapterOrdinal(D3DPipeline.java:205)
> > > at
> >
> javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.assignScreensAdapters(QuantumToolkit.java:695)
> > > at
> >
> javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.runToolkit(QuantumToolkit.java:313)
> > > at
> >
> javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.lambda$startup$10(QuantumToolkit.java:258)
> > > at
> >
> javafx.graphics/com.sun.glass.ui.Application.lambda$run$1(Application.java:153)
> > > at
> > javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native
> > Method)
> > > at
> >
> javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
> > > at java.base/java.lang.Thread.run(Thread.java:834)
> >
> > Scary right! The reason is that JavaFX-11 is loading the wrong
> glass.dll
> > because Eclipse sets a java.library.path who also contains the
> > JVM-Directories used to launch your Eclipse IDE.
> >
> > The simple work-around is to add
> > -Djava.library.path=C:/go-out-of-my-way-eclipse in your launch
> > configuration.
> >
> > Small tiny question on the side: Wouldn't it make sense to version
> our
> > .dlls somehow to match the release eg glass-11.dll?
> >
> > Tom
> >
> > --
> > Tom Schindl, CTO
> > BestSolution.at EDV Systemhaus GmbH
> > Eduard-Bodem-Gasse 5-7. A-6020 Innsbruck
> > Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck
> >
>
> --
> Tom Schindl, CTO
> BestSolution.at EDV Systemhaus GmbH
> Eduard-Bodem-Gasse 5-7. A-6020 Innsbruck
> Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck
>
More information about the openjfx-dev
mailing list