Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Eclipse 2019-03, Java 12 and JavaFX  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • 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.
 
Marshal
Posts: 5995
156
Chrome Eclipse IDE Java Postgres Database Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
Marshal
Posts: 5995
156
Chrome Eclipse IDE Java Postgres Database Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
Marshal
Posts: 5995
156
Chrome Eclipse IDE Java Postgres Database Ubuntu VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks it works
 
Hot dog! An advertiser loves us THIS much:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!