Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: I cannot get eclipse to work with JavaFX

  1. #1
    Junior Member
    Join Date
    Jun 2017
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I cannot get eclipse to work with JavaFX

    So I have followed this video on YouTube https://www.youtube.com/watch?v=bC4XB6JAaoU and when I get done putting in the arguments in the box for run configurations I keep getting an error message like Module javafx.controls;fxml not found.

    I have tried separating the word controls and fxml with a comma, a semi-colon, and a colon and I keep getting the error message. I have followed everything.

    Don't know where I'm going wrong.

    This is what I have typed in the arguments box:

    --module-path "D:\Internet Downloads\javafx-sdk-15.0.1\lib" --add-modules javafx.controls;javafx.fxml

    The error also says error occurred during initialization of boot layer.
    Last edited by 357mag; December 17th, 2020 at 05:05 PM.

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: I cannot get eclipse to work with JavaFX

    error message like Module javafx.controls;fxml not found.
    the separator character is a comma.
    There is no module: fxml. The module name is javafx.fxml

    Here is a commandline that works for me:
    D:\Java\jdk-14\bin\java.exe -cp . --module-path "D:\Java\javafx-sdk-12.0.2\lib"  --add-modules=javafx.controls --add-modules=javafx.fxml HBoxMain
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. How to Java code onto Eclipse and make it work?
    By vivbala in forum Java IDEs
    Replies: 5
    Last Post: October 13th, 2013, 01:36 PM
  2. How to make Eclipse work with txt file?
    By Prostak in forum What's Wrong With My Code?
    Replies: 6
    Last Post: November 4th, 2011, 05:43 PM
  3. Code is working in Eclipse but when exported to Runnable Jar doesn't work
    By jjain.jitendra@gmail.com in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 24th, 2011, 07:12 AM
  4. Replies: 1
    Last Post: March 24th, 2011, 08:22 PM