Install Java 8 and Eclipse 14.04 on Ubuntu 4.4 LTS

Source: Internet
Author: User

Install Java 8 and Eclipse 14.04 on Ubuntu 4.4 LTS

Full illustration of Ubuntu 14.04 LTS installation of Java 8 and Eclipse 4.4:

1. Link for installing Java 8:

2. Download eclipsehttp: // www.eclipse.org/downloads/

Just started with Eclipse IDE for Java EE Developers, decompress the package, and double-click

An error occurred.

The reason for this problem is that I am ~ /. The Java environment variable in bashrc. This file will be read when you start the terminal, but it is not global. Therefore, the jre cannot be found by double-clicking.

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

Solution 1: add the Java environment in/etc/profile

Solution 2:

Go to eclipse, create a jre folder, enter the jre folder, ln-s your JDK absolute directory/bin

After the settings are complete, double-click the settings to start successfully.

The menu is missing and the global menu is not displayed.

Solution 1: (set the Java environment to profile)

Solution 2:

Solution 3: add it to the Application menu (recommended)

Save the Ubuntu menu items in the/usr/share/applications directory.

Create an eclipse. desktop and enter the following code on the terminal:

Sudo gedit/usr/share/applications/eclipse. desktop

Add the following content to the file, save and exit.

Exec =/home/user/eclipse (Note: This is the running program eclipse under the decompressed directory of eclipse)

Icon =/home/user/eclipse/icon. xpm (Note: This is the Icon in the decompressed directory of eclipse)

Restart eclipse and the global menu appears.

3. if you double-click it, but if you start it with a terminal, some warning and error messages will appear.

Java HotSpot (TM) 64-Bit Server VM warning: ignoring option MaxPermSize = 256 m; suport was removed in 8.0 (this is a warning because Java 8 has canceled the permanent generation, therefore, the setting of MaxPermSize in eclipse configuration in Java 8 will be ignored. If you cancel the MaxPermSize in ini, this warning will not appear)

Org. eclipse. m2e. logback. configuration: The org. eclipse. m2e. logback. configuration bundle was activated before the state location was initialized.

Will retry after the state location is initialized.

Org. eclipse. m2e. logback. configuration: Logback config file:/home/user/workspace/. metadata/. plugins/org. eclipse. m2e. logback. configuration/logback.1.5.0.20140606-0033.xml

Org. eclipse. m2e. logback. configuration: Initializing logback

Java. lang. ClassCastException: org. eclipse. osgi. internal. framework. equinoxations $1 cannot be cast to java. lang. String

At org. eclipse. m2e. logback. configuration. LogHelper. logJavaProperties (LogHelper. java: 26)

......

At java. util. TimerThread. mainLoop (Timer. java: 555)

At java. util. TimerThread. run (Timer. java: 505)

This error should be a BUG of the maven plug-in attached to eclispe j2ee.

Https://bugs.eclipse.org/bugs/show_bug.cgi? Id = 445687

Https://bugs.eclipse.org/bugs/show_bug.cgi? Id = 440696

I have not found a good solution yet, but I don't want to use the software with error reports during development. I decided to try the pure version of eclipse.

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • 3
  • Next Page

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.