We have been developing in windows for a long time, you may know that eclipse does not need to install, only need to decompress, configure the environment variables can be used, but there may be some problems under Linux, Below we illustrate the use of Eclipse based on the latest Ubuntu18.04 and the latest eclipse, which can be used quickly in the next two steps.
1. Create a shortcut
Linux Shortcut directory under/usr/share/applicaitons/
Create Eclipse.desktop
- [Desktop Entry]
- encoding=UTF-8
- Name=Eclipse
- Exec=/home/haha/environments/eclipse/eclipse
- icon=/home/haha/environments/eclipse/icon.xpm
- Startupnotify=True
- Type=Application
Note that the path to write to, so you will see the icon, but found still can not run, find the JRE, what ghost, clearly configured environment variables, in fact, this is the problem of eclipse, we are the second step, configure the Eclipse JRE path.
2. Configure the Eclipse JRE
Let's say the JRE in the JDK path is copied to the Eclipse root directory.
(if not, go to the official website and download the JRE to the Eclipse root directory)
Eclipse Configuration and shortcut creation under ubuntu18.04