This worked for me:
File >> Project Structure >> Modules >> Dependency >> + (on left-side of window)
clicking the “+” sign will let you designate the directory where you have unpacked JavaFX’s “lib” folder.
Scope is Compile (which is the default.) You can then edit this to call it JavaFX by double-clicking on the line.
then in:
Run >> Edit Configurations
Add this line to VM Options:
--module-path /path/to/JavaFX/lib --add-modules=javafx.controls
(oh and don’t forget to set the SDK)
Related Posts:
- JavaFX – Exception in Application start method?
- JavaFX – Exception in Application start method? [duplicate]
- Lombok and Maven
- Error: Could not find or load main class in intelliJ IDE
- Login Application with 1 stage and multiple scene in JavaFX
- Handle mouse event anywhere with JavaFX
- unused import statement for used ones in IntelliJ IDEA
- InvocationTargetException when running a javafx program
- How to fix “unsupported class file major version 60” in IntelliJ?
- intellij incorrectly saying no beans of type found for autowired repository
- JAVA_HOME should point to a JDK not a JRE
- What does it mean: JavaFX application class must extend javafx.application.Application?
- IDEA: javac: source release 1.7 requires target release 1.7
- IntelliJ – Can’t start – “JAVA_HOME does not point to a valid JVM installation”
- How to switch scenes in JavaFX
- Adding a timer to my program (javafx)
- How to create a popup window in javafx
- The import javafx cannot be resolved
- Correct way to add external jars (lib/*.jar) to an IntelliJ IDEA project
- Error: Module not specified (IntelliJ IDEA)
- Invalid signature file digest for Manifest main attributes exception while trying to run jar file
- JavaFX and OpenJDK
- Using JavaFX in JRE 8, “Access restriction” error
- Creating a Calendar using javafx
- “Cannot start compilation: the output path is not specified for module…”
- intellij idea – Error: java: invalid source release 1.9
- String index out of bounds exception java
- Class JavaLaunchHelper is implemented in two places
- IntelliJ IDEA “The selected directory is not a valid home for JDK”
- How do I declare and initialize an array in Java?
- Convert list to array in Java [duplicate]
- Convert String to double in Java
- Initialization of an ArrayList in one line
- Is there a Heap in java?
- What’s the difference between map() and flatMap() methods in Java 8?
- Why do we need copy constructor and when should we use copy constructor in java
- What are the -Xms and -Xmx parameters when starting JVM?
- How to match “any character” in regular expression?
- Running JAR file on Windows 10
- Iterate through a HashMap [duplicate]
- Non-static variable cannot be referenced from a static context
- JAVA invalid maximum heap size. The specified size exceeds the maximum representable size
- JDK9: An illegal reflective access operation has occurred. org.python.core.PySystemState
- Usage of @see in JavaDoc?
- Hadoop “Unable to load native-hadoop library for your platform” warning
- Unreported exception java.lang.Exception; must be caught or declared to be thrown
- How to clear the console?
- How to capitalize the first letter of a String in Java?
- Scanner vs. BufferedReader
- What is Java String interning?
- Rename a file using Java
- What is “String args[]”? parameter in main method Java
- “A java exception has occurred” when opening .jar
- How do I set environment variables from Java?
- Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: 0 error in Java
- What’s the advantage of load() vs get() in Hibernate?
- Java error: Comparison method violates its general contract
- “Cannot create generic array of ..” – how to create an Array of Map
? - javac: file not found: first.java Usage: javac
- Eclipse Java error: This selection cannot be launched and there are no recent launches
- align text center with android
- hat is the purpose of flush() in Java streams?
- How can I convert integer into float in Java?
- How can I avoid this Ant Build error?
- Java Comparator class to sort arrays
- (The Triangle class) Design a class named Triangle that extends GeometricObject
- Cannot assign requested address using ServerSocket.socketBind
- Consider defining a bean of type ‘package’ in your configuration [Spring-Boot]
- Java – How to do floor division?
- Short form for Java if statement
- How to read json file into java with simple JSON library
- How can I convert a long to int in Java?
- org.apache.jasper.JasperException: Unable to compile class for JSP:
- Empty an array in Java / processing
- Class is not Abstract and does not Override error in Java
- hibernate properties not found
- Make a simple timer in Java
- Corrupt jar file
- Error array dimension missing
- How to detect EOF in Java?
- Information about _JAVA_OPTIONS
- Two dimensional array list
- Must issue a STARTTLS command first
- Convert boolean to int in Java
- How to convert a String to CharSequence?
- Aspect Ratio with 800×480
- How do I convert a String to a BigInteger?
- How to set JAVA_HOME in Linux for all users
- What is ‘PermSize’ in Java?
- Unknown version of Tomcat was specified in Eclipse
- How to compare character ignoring case in primitive types
- How can I wait for 10 second without locking application UI in android [duplicate]
- Intellij – Unable to use newer Java 8 classes – Error : “Usage of API documented as @since 1.6+..”
- Java error “Value of local variable is not used”
- Is there a way to end the program if statement is false?
- ArithmeticException: “Non-terminating decimal expansion; no exact representable decimal result”
- convert string to arraylist
in java - how to use drawArc()
- How do I enable index downloads in Eclipse for Maven dependency search?
- How to convert java.util.Date to java.sql.Date?