LinuxMint installed JDK and Eclipse

Source: Internet
Author: User
Tags linux mint

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.