Some have asked the question before and there are various responses, however none directly answered the question and so here it is again. Appreciate any pointer.
Use sudo apt-get install eclipse. Make sure to remove openjdk.
sudo apt-get remove openjdk*
DON'T FORGET THE ASTERISK IN THE COMMAND!
https://www.linuxbabe.com/desktop-linux/install-oracle-java-8-debian-jessie-raspbian-jessie-via-ppa
Follow that article to install oracle java on raspbian. Done.
-
sudo apt-get install eclipse
installs Eclipse 3.8, but the OP clearly asked how to install Eclipse Luna (4.4) or later. – Robert Hume Jun 23 '18 at 16:25 -
I keep getting an error when launching eclipse about 'java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter'. Any ideas? – Felipe Correa Oct 21 at 4:17
Although it is a bit old I found an article of someone who wanted the same. You could do it with:
sudo apt-get update
sudo apt-get install eclipse
So it is possible but I'd recommend to just run Eclipse on your desktop device or laptop and just transfer the built files or source code to your Raspberry Pi.
-
1The thread you link is about someone failing to install Luna. I'm don't know what the current eclipse available on Rasbpian is, but presumably the OP would not be asking about a specific version if it were up to date with that. – goldilocks♦ Sep 29 '16 at 15:27
-
1The current version of Eclipse with Raspbian is 3.8.1 which does not support Java 8 (otherwise it would be fine) – Thorbjørn Ravn Andersen Jan 17 '17 at 11:15
I have used Eclipse on the Raspberry PI models 2 and 3 and found the performance to be quite good when doing Java development with pi4j when using Oracle's Java 8. It is a bit slow to load (15 seconds or so) and you will notice a slight delay the first time any new item (editor, builder, etc) is run (presumably class loading), but once up and running, it runs pretty smoothly. When debugging I/O device drivers etc, having it run native on the PI is great.
WARNING!!!!!!! CAUTIONARY note on running Eclipse native on the PI. If you use apt-get to install eclipse, it will also install Open JDK and set eclipse to use it. Open JDK is extremely slow when compared with Oracle's JDK so be sure to install oracle Java and use it.
-
1While this is great information, it does not really address the question about how to install Luna on the pi. – Bex May 11 '17 at 9:42
-
Sorry. I added it because when installing eclipse on the PI, this issue can make or break its usability so I thought it was relevant to installing. But as you said, it does not literally address the install procedure itself. – akaptt May 15 '17 at 17:13
eclipse.org
, then to the download page, download it, unzip or untar it, then run it. – ott-- Sep 29 '16 at 18:13