Ubuntu14.04lts Installing JAVA8 and Eclipse

Source: Internet
Author: User

1 installation JAVA8 Link: http://blog.csdn.net/kaidishi/article/details/40718269

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

Just started out. Eclipse IDE for Java EE developers, unzip and double-click

An error has occurred

The reason for this problem is that I add Java environment variables in ~/.BASHRC. This file will be read when you start the terminal, but he is not a global one. So double-clicking is unable to find the JRE.


Workaround One: Add Java environment to/etc/profile

Solution Two:

Enter Eclipse, create JRE folder, go to JRE folder, ln-s your JDK absolute directory/bin bin

After Setup is complete, double-click to start successfully


The menu is gone and the global menu is not displaying information.

Workaround One: (need to set the Java environment in profile)

Workaround Two:

Solution Three: Add it to the Application menu (recommended)

Ubuntu menu items are saved in the/usr/share/applications directory

Create a new Eclipse.desktop and enter the following code in the terminal:

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

Add the following to the file, and then save and exit
Exec=/home/user/eclipse/eclipse (Note: This is the running program eclipse in the extract Directory of Eclipse)
ICON=/HOME/USER/ECLIPSE/ICON.XPM (Note: This is the icon under the Extract directory for Eclipse)


Restart Eclipse, the global menu appears


3 if the double-click does not feel a problem, but if you start with the terminal, there will be some warnings and error messages


Java HotSpot (TM) 64-bit Server VM warning:ignoring option Maxpermsize=256m;suport is removed in 8.0 (This is a warning because JAVA8 cancels the permanent generation, so the MaxPermSize setting in the Eclipse configuration is ignored by JAVA8, and the maxpermsize in the INI does not appear .)
Org.eclipse.m2e.logback.configuration:The org.eclipse.m2e.logback.configuration Bundle was activated before the state Location is initialized.
Would retry after the state 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.equinoxconfigurations$1 cannot is 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 with the Maven plugin included with Eclispe EE

I haven't found a good solution yet, but I don't want to use the software with error reporting in development and decide to try using the pure version of Eclipse

On the download page that did not find the classic version of 4.4 or the standard version, but also the other version of the unfamiliar, just when difficult to choose to find the left menu bar has an option

Click to view plugins for different versions of Eclipse

You can see that the Eclipse IDE for Java developers and Eclipse IDE for Java EE developers all come with Maven, so I chose the least plug-in Eclipse IDE for Eclipse Committe RS 4.4.1.

It's a bit of a surprise to find that the downloaded install package name has standard

Unzip after download


Start successfully, no error message

Then to eliminate the warning, modify the Eclipse.ini configuration file, remove the contents of the red box

Reboot, the contrast can be found, after modifying the Eclipse.ini, the warning message disappears.


4 for this fruit Eclipse plug-in, you can use marketplace to find each, you can also use the following method (recommended)


(The following can be selected as required, but there are some plug-ins can be installed in the back of the JDK 8 Kepler, I am too troublesome to check all)

Because JDK 8 is used, you also need to install Java 8 Kepler, download click Java8support to see the relevant information

To convert a normal Java project to Java Web, right-click on the project, tap Properties, select Dynamic Web module and Java

OK after reboot, normal





Ubuntu14.04lts Installing JAVA8 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.