score:1
i'll detail my install and setup process in case anyone else has troubles:
setup for javafx11, jdk11, and eclipse on ubuntu 18.04
install openjdk11 and javafx11 sdk
sudo apt install openjdk-11-jdk openjfx
be sure to select the sdk version of javafx!
check java version reads out the correct jdk version
java -version
the output should look like this:
openjdk version "11.0.3" 2019-04-16
openjdk runtime environment (build 11.0.3+7-ubuntu-1ubuntu218.04.1)
openjdk 64-bit server vm (build 11.0.3+7-ubuntu-1ubuntu218.04.1, mixed mode, sharing)
install the newest eclipse 2019-03 (4.11)
when creating a project:
- create a new java project
- be sure the jdk used for the project is jdk11
- don't create module.info
- right click your project folder and click "properties". go to the "libraries" tab and left click "module path". on the right, select "add library" and choose "user library"
- name it javafx
- include all of the .jar files in /path/to/javafx/lib
- don't include anyother file type!
- add the newely created libary to the projects module path
- in run configuration, found in the run taskbar, select the "arguments" tab and add this to vm arguments:
--module-path /usr/lib/jvm/javafx-sdk-11.0.2/lib --add-modules javafx.controls,javafx.fxml
- be sure the path to your javafx is correct!
Source: stackoverflow.com
Related Query
- Runtime error for a basic javafx11 application using jdk11 and Eclipse 2019-03 (4.11.0)
- How to avoid no main class and no class def found error using DropBox and Eclipse for Java
- Error using maven-gae and google plugin for eclipse (GPE)
- Android SDK for eclipse using Google Play Services Lib: Error "Target runtime jre1.8.0_25 is not defined."
- getting error when trying to connect to a database using JDBC and Eclipse for Android
- process_begin: CreateProcess(NULL, cp file dir, ...) failed error while building application on eclipse and using cygwin
- Using Proguard for Android in Eclipse got Error
- Eclipse error setting up Maven project for class exercise: Check $M2_HOME environment variable and mvn script match
- Best way to debug Java web application packaged as a WAR using Eclipse and Maven?
- Error: JavaFX runtime components are missing, and are required to run this application in eclipse
- Impact Analysis using Eclipse for Java application with framework code
- Generate Web Application Project for Eclipse using Maven.
- Eclipse Shortcut Key for Color and Fonts -> Basic -> Text Font
- Search for text inside decompiled classes using JD and Eclipse
- How to debug PHP application using Eclipse PDT (xdebug and zend debugger)
- Creating a helloWorld plugin for Android using Cordova and Eclipse
- How can I create a Java EE 7 application using eclipse and gradle?
- Update Robolectric 2.4: Getting application tag error for library projects in eclipse
- Using both jdk 1.6 and jdk 1.7 for different projects in Eclipse
- Using autoprops in eclipse for all files and folders in an svn project
- Eclipse GDB "init" and "run" settings for ARM LPC1768 using OpenOCD?
- No driver for Asus MeMO Pad to do application debug using eclipse
- Using eclipse and maven 2, how to get dependancy for sqljdbc4?
- Using ${samedir} in Checkstyle-plugins for Gradle and Eclipse
- How to increase productivity with Vim and Eclipse for PHP5.3 projects (possibly using Eclim integration with Zend Studio)
- Eclipse info.plist file for OSX and Windows application
- POM error when using ActionbarSherlock with Eclipse and Maven
- Using Clearcase and Eclipse for C++
- Eclipse buildtime and runtime classpaths for easy execution of junit test cases
- Integrate Eclipse RAP and OSGI/Spring-DM plugins, using Maven for build
More Query from same tag
- When Run As at Server,Eclipse - Tomcat - java.lang.NoClassDefFoundError: javax/servlet/ServletConfig
- How do I suppress warnings in Eclipse for PHP?
- generate ws client with wsdl and axis2
- SoC EDS DS-5 installation on Linux
- ADT app not working at all WHY?
- Eclipse RCP : Application "org.eclipse.ui.ide.workbench" could not be found in the registry
- How to remove this Exception "Exception in thread "main" java.lang.UnsatisfiedLinkError: no jniopencv_objdetect in java.library.path"
- How does Eclipse run .java files as applets?
- Eclipse displaying error but not giving error in console
- What is the Eclipse shortcut for Open Declaration?
- How to set size of FolderLayout as absolute value not ratio
- Moving a picture with the mouse is off centered
- How to import RapidMiner JARs in Eclipse?
- Increment integer before using as text for widget
- Framework for developing web sites using python and eclipse
- Eclipse how to disable validation for txt file (lsp4e)
- How to pass parameter as POST from BIRT Input parameter window
- How to add unit tests in Eclipse for a managed ARM C project?
- Can't find Eclipse RCP bundle
- Eclipse error exporting war
- Projects disappears from PyDeb Package Explorer... what am i doing wrong>
- A way to set up virtual environment directly in Eclipse for Django project?
- In Eclipse using Maven, I would like to have my build directory in a ram drive. How do I specify project.build.directory?
- How do I check out an SVN project into Eclipse as a Java project?
- Set android background to a specific location
- Eclipse doesn't report errors until runtime
- How to Properly use Select Max() in Eclipse
- Can I force code review before check-ins in the TFS plug-in for Eclipse?
- Android: Managing projects in Eclipse
- Eclipse not showing project files with git provider