Linux Mint install JDK and Eclipse preface
After trying several distributions, the Linux Mint Cinnamon was finally locked. Then you have to configure the environment.
Here's a look at the Java environment, configuring the JDK and Eclipse.
Jdk
The Linux mint itself is loaded with openjdk (the difference between this and what we call the JDK itself, Google. The simple point is that the evil Oracle. Then maybe you will use OpenJDK more later. Now it's time to use Oracle's first. ), so before loading the JDK we used to say is Oracle's JDK, uninstall OPENJDK
Open Terminal
sudo apt-get update && apt-get remove openjdk*
Then is to the JDK website to download the system corresponding JDK ~ ~ and then unzip (here I unzip into the JDK folder)
Then create the Java folder under opt
sudo mkdir -p /opt/java
Move the JDK you just extracted into the Java folder
sudo mv jdk /opt/java
Because the system itself is openjdk, just point the Java link to the newly installed JDK.
sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jdk/bin/java"sudo update-alternatives --set java /opt/java/jdk/bin/java
The last is to check whether the installation is OK ~ ~
java -version
Eclipse
Installing eclipse is a simple matter of fact. First of all, of course, download it on the official website ~ ~ Find the corresponding compression package, download it and unzip it to the place you like.
And then.. Then you can simply double-click Eclipse to run the. Of course, laziness is the biggest factor driving human progress. Don't want to open eclipse every time you go into a folder. Then we can get a desktop launcher: Right-click on the desktop to choose a new launcher. Name just write Eclipse,command and browse to the eclipse,comment you unzipped to write freely. And then just fine.
Of course I am accustomed to the desktop blank add a docky person. So I have to think about how to put eclipse into docky:1. Open Terminal input:
sudo gedit /usr/share/applications/eclipse.desktop
2. Copy and change the following code to the file you gedit open
[Desktop Entry]Encoding=UTF-8Exec= `你的eclipse路径`Icon= `eclipse的icon文件`Type=ApplicationTerminal=falseComment=Eclipse Integrated Development EnvironmentName=EclipseGenericName=`你喜欢`StartupNotify=falseCategories=Development;IDE;Java;
and then save.
3. Go to this location/usr/share/applications, find Eclipse and drag it directly to Docky
LinuxMint installed JDK and Eclipse