Eclipse
Download latest Eclipse for Java tar.gz file π Eclipse Downloads
Extract the package into the /opt
directory:
sudo tar xfv eclipse-java-2020-06-R-linux-gtk-x86_64.tar.gz -C /opt
Create symlink of the executable to /usr/local/bin
sudo ln -s /opt/eclipse/eclipse /usr/local/bin/
Create Eclipse Launcher Icon
sudo vim /usr/share/applications/eclipse.desktop
Then paste
Desktop Entry]
[Encoding=UTF-8
Name=Eclipse IDE
Comment=Eclipse IDE
Exec=/usr/local/bin/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
StartupNotify=false
Ref:
- π Eclipse IDE for C/C++ Developers installation on Ubuntu 20.04
- π How To Install Eclipse IDE on Ubuntu 20.04
Issues
Access restriction: The type 'Application' is not API (restriction on required
library jfxrt.jar)
Solution:
e(fx)clipse JavaFX
To install, go to Help -> Eclipse Marketplace
then search fx
and install the e(fx)clipse
NOTE: Make sure before creating new JavaFX project, proper JRE execution environment has properly been setup.
- Go to
Window -> Preference -> Java -> Installed JREs
then add installed jre in your machine - Then, Under
Installed JREs
go toExecution Environments
and pick the[perfect match]
for the selected Installed JRE
Ref:
Maven JavaFX
Create a new maven project, making sure Create a simple project (skip archetype selection)
option is unchecked, then Add Archetype
and enter the following:
Archetype Group Id: org.openjfx
Archetype Artifact Id: javafx.archetype.fxml or javafx.archetype.simple
Archetype Version: 0.0.1
Then on the Filter
textbox, type org.openjfx
and pick the desired archetype from the search result and hit Next
Under Properties available from archetype:
change javafx-version
value to match your desired jdk version.
Ref:
Resources
- π Eclipse Downloads
- π Eclipse IDE for C/C++ Developers installation on Ubuntu 20.04
- π How To Install Eclipse IDE on Ubuntu 20.04
- π Access restriction: The type βApplicationβ is not API (restriction on required library rt.jar)
- π JavaFX Tutorial for Beginners - Setting up Eclipse Tooling and Runtime for JavaFX
- π Getting Started with JavaFX