|Re: e(fx)clipse doesn't work well [message #1824349 is a reply to message #1824291]
||Tue, 14 April 2020 08:39
| Tomasz Sieduszewski
Registered: April 2020
Hi guys, I also had a problem with e(fx)clipse in Eclipse - because there is many solutions in the Internet (some of them work, some of them not) I want to share a my solution. It is based on the installaton guides that I found in Google, but most importantly that it works.|
IMPORTANT: this instruction working for sure with Eclipse EE 2020-03 and JDK13 (during my search for answers I was deperate to find the solution, that I have installed many versions of Eclipse: 2019-09, 2019-03, even Oxygen. Finally I've installed 2020-03 EE, and because instruction below worked, I have not tested it on other versions of Eclipse - but I hope it works too.
1. Install e(fx)clipse according to this web page: https://www.eclipse.org/efxclipse/install.html#for-the-ambitious
a) in "Install new software" wizzard you should add the new site location to found proper software. Use "Add" button in "name" section type "e(fx)clipse (or anything you want, it does not matter). In "location" section type: https://download.eclipse.org/efxclipse/updates-nightly/site/
b) after using search button you should found two applications: e(fx)clipse-install and e(fx)clipse - single components - install them all
c) after intallation Eclipse will restart
2. Download Java FX from: gluonhq.com/products/javafx/ (I have used JFX14)
3. Extract downloaded pack and REMEBER THE LOCATION OF EXTRACTED FILES (it is very important).
4. In Eclipse run Window -> Preferences -> Java -> Build Path -> User Libraries. Click "Add" and name it "JavaFX14" (or whatever you like).
5. One-click on the newly added library, and click "Add external Jars". Find the files that you downloaded (that from step 3) and find folder named "lib" (in my case was "C:\Java\openjfx-14_windows-x64_bin-sdk\javafx-sdk-14\lib). Select all JAR files (in folder should be JAR files and one ZIP Archiwe so watch out).
6. Click Apply and close.
7. Run Window -> Preferences -> Java -> Installed JRE's. Click on the your active JDK and click "Edit" button.
8. In "Default VM arguments" section type:
--module-path [LOCATION OF THE DOWNLOADED FILES FROM STEP 3]\lib --add-modules=ALL-MODULE-PATH
In my case it was: --module-path C:\Java\openjfx-14_windows-x64_bin-sdk\lib --add-modules=ALL-MODULE-PATH
Notice that location address leads to "lib" folder - do not forget it!
Now when you will create a new Java Project (classic Java Project, not FX or something) you must remember only one thing. After setting project name, location etc. do not click "Finish" button. Click "Next" button. Click on "Libraries" bookmark, then ONE-CLICK ON THE MODULEPATH (it is very important). Now click "Add library" / User libraries and choose previously created library. It should appear your library on the list of modulespath. Click Finish and enjoy of your project with JavaFX. This step should be repeated every time when you want to create a new java project. But inside the project you don't need to do anything. You can add a classes, interfaces etc. and testing it by "Run button" (no Run configuration or something!)
PS. Sorry for my english - still learning.
Powered by FUDForum
. Page generated in 0.02195 seconds