Eclipse 2018-09 and JavaFX 11 adventure [message #1797185] |
Sat, 27 October 2018 03:28  |
Eclipse User |
|
|
|
Hello all !
I am using:
- Windows 10 64 bit
- Eclipse 2018-09 (4.9.0) Build id: 20180917-1800
- openjdk-11.0.1_windows-x64_bin.zip which I unzip and included under Installed JREs Preferences.
- Eclipse is running using jdk-10.0.2_windows-x64_bin.exe .
- I installed "Java 11 Support for Eclipse 2018-09" based on information from the market place
( http://marketplace.eclipse.org/content/java-11-support-eclipse-2018-09-49 )
I installed from http://download.eclipse.org/eclipse/updates/4.9-P-builds
Using openjfx.io/openjfx-docs/#maven as a reference I created a maven project with:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
</properties>
Under <dependencies> I have:
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>11</version>
</dependency>
I copied openjfx.io/openjfx-docs/HelloFX.java and it compiled with no problems .
The project does not use module-info.java !!!
When I try to run it I am getting:
Error: JavaFX runtime components are missing, and are required to run this application
This is odd since the compile went ok.
Next just for testing I created a Runnable JAR . I used "Package required libraries into generated JAR"
Since my JDK 11 is not included in my system path environment variable I created a shortcut (Windows) to the jar:
Target: C:\Java\jdk_11\bin\javaw.exe -jar java_11_tests.jar
Statrt in: K:\JavaAPPs\Java_11_Tests
I was VERY surprise to see that the program is working !!!
Can some one explain why I could not run the program in the IDE and run it as a Runnable JAR ?
Is something missing in Eclipse to support java FX 11 ?
I prefer not to use module-info.java for the time being.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03809 seconds