Use Eclipse 15.04, Java 8, and WTP in Ubuntu 4.4

Source: Internet
Author: User
Tags php development environment

Use Eclipse 15.04, Java 8, and WTP in Ubuntu 4.4
Eclipse 15.04 in Ubuntu 4.4

In the previous article, I found the new tool Ubuntu Make in Ubuntu 15.04 and the method for using Eclipse 15.04 in Ubuntu 4.4. Some people may say that it is okay to use Eclipse 4.4 and download it directly from the Eclipse official website? But in Ubuntu, the Eclipse downloaded from the official website is a little different from the Eclipse that comes with Ubuntu. I think Eclipse in Ubuntu has changed its appearance, and its entire color is red. It is very comfortable to use, while the Eclipse color downloaded from the official website is blue. You can see what is behind me.

In the past, I used Eclipse in the Ubuntu software source and used commands.sudo aptitude install eclipseYou can install the openjdk-7 automatically when installing Eclipse. However, Eclipse in the Ubuntu software source has always been version 3.8. I have been waiting for a few years and have not seen any upgrades. It wasn't until I found Ubuntu Make and tried it that Eclipse 4.4 was hidden here. (You can also download many other ides for Ubuntu Make. For more information, see my previous article .)

It is very easy to download and install Eclipse 4.4. now use this command:umake ide eclipse. This command does not require superuser permissions. The downloaded Eclipse is in the current user's home directory. After the installation is complete, the Eclipse icon automatically appears in the starter on the left side of the desktop. Eclipse is still pure, and other plug-ins must be installed by yourself.

Java 8

Ubuntu 15.04 default Java version or openjdk-7, to make Eclipse run more stable and use some of the new features of Java 8, or to upgrade to the openjdk-8. Ubuntu 15.04 software source has a openjdk-8, use the following command to install:

sudo aptitude install openjdk-8-jdksudo aptitude install openjdk-8-jresudo aptitude install openjdk-8-jre-headless

After the installation is complete, the system automatically switches the default Java version to Java 8. For example:

To switch between Java 7 and Java 8, run the following command:

sudo update-alternatives --config java
Web development environment in Eclipse 4.4

As mentioned above, the newly installed Eclipse 4.4 is pure. The Java EE plug-in is used to develop Web applications, for example:

I installed all the plug-ins in this category, and Yiduo won't be overwhelmed. After these plug-ins are installed, tools for writing HTML, CSS, and JavaScript are available, even the PHP development environment is available, although I do not write PHP programs.

Most professional front-end siege lions use WebStorm. I have also downloaded and tried this tool. See my previous article. I am still used to using Eclipse Web development plug-ins. In fact, the Web tools in Eclipse are outdated, and it seems that HTML5, CSS3, and Javascript 5 are not supported yet. Next, write a Bootstrap example to test it, for example:

The left side is composed of project files, with the Web Page editor in the middle, Code view and design view. The code here is copied from the Bootstrap example, showing the default theme Effect of Bootstrap. The Outline view is on the right. The Web Page editor also provides preview functions, such:

The preview effect is not good, probably because the Webkit version used by Eclipse is too low. However, you can open this page in an external browser to preview the effect in FireFox:

Back to Top preview feature requires libwebkitgtk-1.0-0, otherwise errors will occur

When I first started using the preview function, it was not as smooth as it was, but with the following error:

Error message:No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]To the prompt keyword in the online search is easy to find the way to solve this problem, that is, be sure to install libwebkitgtk-1.0-0. In fact, I installed libwebkitgtk version earlier than it, such as the libwebkitgtk-3.0-0, And then I installed the libwebkit2gtk-4.0-37, but unfortunately, can not solve the Eclipse problem, you must install the libwebkit-1.0-0. This once again shows that the Web tools in Eclipse are too old. It may be because the release cycle of Eclipse is too long. A new version was released in two years, so I missed the most popular front-end development in the last two years. I don't know if the next version will improve this problem.

-------------------------------------- Split line --------------------------------------

Install Java 8 and Eclipse 14.04 on Ubuntu 4.4 LTS

Hadoop Eclipse plug-in compilation and installation 1.2.0

Compile Hadoop plug-in Eclipse

Hadoop 1.2.1 compile Eclipse plug-in

Install JDK and Eclipse for C/C ++ in Ubuntu 13.10 (solving global menu problems)

How to install the latest Eclipse version in Ubuntu 14.04

-------------------------------------- Split line --------------------------------------

Eclipse details: click here
Eclipse: click here

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.