install latest eclipse in linux mint

jahid_0903014
  10 years ago
  12

if you want the latest eclipse then go to the eclipse official site:

www.eclipse.org   

and then to the downloads section.

http://www.eclipse.org/downloads/index.php

now you will see the latest versions available

for now its eclipse kepler 4.3.1 and in the developer builds : eclipse luna 4.4 M4 (21th Dec 2013)

if you go to the above link from linux then you will be presented with the linux versions by default. if you go to the website within other OS, make sure you select the right platform.

then download the right choice of yours ( for me its eclipse standard 4.3.1 or 4.4 M4)

you can select any mirror you like (i downloaded from the main site at canada)

after downloading

you will see a archive named like eclipse-standard*.tar.gz

1. make a folder

mkdir /home/user/eclipse_version

(user is your user name)

or simply create a new folder in the /home/user directory by right clicking with the name eclipse_version

2. extract the archive into this directory with archive manager

or

tar -zxvf file_name.tar.gz -C /home/user/eclipse-version

now eclipse is already installed, it's in the directory /home/user/eclipse-version/eclipse

to run eclipse from the install directory

go to the directory /home/user/eclipse-version/eclipse

and double click the file "eclipse" and that's it.

to run eclipse from a desktop launcher

right click on the desktop and choose "create a new launcher here"

in name type Eclipse version(Luna) or whatever you want

in command type /home/user/eclipse-version/eclipse/eclipse

you can change the icon by clicking on it and browsing the eclipse icon in 

/home/user/eclipse-version/eclipse directory

you can add comment if you like in the comment section.

now hit OK.

a desktop shortcut will be created for you.

to run eclipse from the menu

1. in the terminal enter this code:

sudo gedit /usr/share/applications/eclipse-luna.desktop

eclipse-luna will be replaced  by your app name

2. copy paste the following lines into the newly opened .desktop file

[Desktop Entry]
Encoding=UTF-8
Exec=/home/user/eclipse-version/eclipse/eclipse
Icon=/home/user/eclipse-version/eclipse/icon.xpm
Type=Application
Terminal=false
Comment=Eclipse Integrated Development Environment
Name=Eclipse Luna
GenericName=eclipse-4.4 M4
StartupNotify=false
Categories=Development;IDE;Java;

user will be replaced by your user name. (must).

For Exec and Icon, the path should be correct i.e you must change "user"  & "eclipse-version" according to your path. (must).

in "Name= Eclipse Luna " you can change the name whatever you want.(optional).

in "GenericName" you can put whatever you want. you can cut off this line too.(optional).

save & exit the .desktop file.

a new entry named "Eclipse Luna" will be added in the menu under the programming section.

3. now go to menu->programming->Eclipse Luna.

Enjoy... your eclipse environment....

Comments
Jeff69 5 years ago

I get the message:
An error has occurred. See the log file
/home/jeff/eclipse/eclipse/configuration/1550418238213.log.


Logfile:::::

!SESSION 2019-02-17 16:41:49.264 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=11.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.equinox.simpleconfigurator 4 0 2019-02-17 16:41:49.738
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503 [1]" could not be resolved. Reason: Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1317)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1301)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:319)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:374)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1067)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:561)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:546)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:459)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:440)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)

!ENTRY org.eclipse.osgi 4 0 2019-02-17 16:41:49.742
!MESSAGE Bundle initial@reference:file:plugins/org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503.jar/ was not resolved.

!ENTRY org.eclipse.osgi 2 0 2019-02-17 16:41:49.750
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2019-02-17 16:41:49.750
!MESSAGE Bundle org.eclipse.equinox.simpleconfigurator_1.0.200.v20100503 [1] was not resolved.
!SUBENTRY 2 org.eclipse.equinox.simpleconfigurator 2 0 2019-02-17 16:41:49.750
!MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: CDC-1.1/Foundation-1.1,J2SE-1.4

!ENTRY org.eclipse.osgi 4 0 2019-02-17 16:41:49.751
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)


unclekeypax 5 years ago

Thank you it really helped


kewi 8 years ago

Works fine. Got the paths wrong the first time as I extracted it differently. Put it in /opt but with the paths fixed all good.


shreejith 9 years ago

Thanks it was really helpful.


citricube 10 years ago

Nevermind found this great tutorial

http://community.linuxmint.com/tutorial/view/864


citricube 10 years ago

Awesome post, anyway to add it to terminal as well. So I could get it by typing eclipse or eclipse-kepler?