• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse 2019-03, Java 12 and JavaFX

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cant make my Eclipse Project recognize that there is JavaFX Library.
My OS is ubuntu 18.04 I installed successfully Java 12. Eclipse works
fine except for JavaFX. When i go to the marketplace i find that e(fx)cl
ipse is installed. Additionally i loaded the gluon javafx Library down. In
Build Path i can choose to add JavaFX SDK to the module or classpath.
When i do so, there is an empty window with a finish Button in the lower
section. I tryed that. JavaFX Library wont occure in the Project Explorer.
But in the Build Path Adjustment window. In my migrated workspace javaFX
code references wont be resolved.
 
Sheriff
Posts: 7125
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
Are you using a builder manager of any sort, like Maven or Gradle?

i loaded the gluon javafx Library down.


So you got JavaFX from Gluon and they are jars.  Then you tried adding them to the build project and it didn't work?  I will test this.  One moment please.
 
Knute Snortum
Sheriff
Posts: 7125
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 see what you're saying.  When you try to add a JavaFX Library, the library selection screen is blank.  Looks like a bug in Eclipse.

There are two other ways to get around this:

* Download the Oracle Java 1.8 SDK.  It still has JavaFX built into it.

* Use Maven or Gradle to setup the JavaFX environment.  This is a little complex, but if you want to go this route, I can help you.  The pom.xml file (Maven) for this project contains the JavaFX dependencies. If it helps, great.  If not, post back here and I'll try to guide you through it.
 
Knute Snortum
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay, here's how to do it.

* Download Gluon's JavaFX library
* Extract
* In Eclipse, in the project you're working on, right-click the project, select Build Path, select Add External Archives
* Navigate to your extracted JavaFX directory
* Select all jar files (Shift-Click or Ctrl-Click)
* Press Apply and Close

Hope that helps.
 
John Bernard
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks it works
reply
    Bookmark Topic Watch Topic
  • New Topic