Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Eclipse won't run JavaFX

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Screenshot attached.

I closed all the other programs on the workspace, and it won't even run the HelloFX demo. What's happening? I'm a bit of a beginner here...
Screenshot-(1).png
[Thumbnail for Screenshot-(1).png]
 
Sheriff
Posts: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suspect you don't have your VM arguments set.  If you know how to set the VM arguments in a run configuration, you would type in something like this in Linux/Mac:

   --module-path /path/to/javafx-sdk-14/lib --add-modules javafx.controls

or like this in Windows:

   --module-path "\path\to\javafx-sdk-14\lib" --add-modules javafx.controls

If that doesn't ring a bell, then I'd follow the instructions here:

   https://openjfx.io/openjfx-docs/#IDE-Eclipse

That page can be a little daunting, so feel free to post back here if you don't understand anything.
 
Knute Snortum
Sheriff
Posts: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is yet another way to do this which may be preferable.  Create a new class that looks like this:
Launch that program instead of Main.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic