Note: some versions of Eclipse work well, others,.... not so much. Below is a table of known good/useful versions of Eclipse, the Scala IDE package, and SBT.
Please add to this table. Newer information at the top please.
Date | Eclipse Version | Scala IDE Version | SBT version | Comments |
---|---|---|---|---|
2016-06-02 | Known good: Mars.2 Release (4.5.2) Build id: 20160218-0600 http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/mars2 | Known good: 4.4.0.v-2_11-201604010957-ff530d2 (However, best to just use the eclipse update site and let eclipse pull it down) http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site | known good: 0.13.8 | I am able to do development using this eclipse configuration without having it crash, or need restarting more than about once every few days. I do find I must clean and rebuild the entire project about once a day still, or it seems to get confused and puts up spurious compilation errors that are not reproduced after a clean and build-all. -Mike Beckerle |
2016-06-24 | Known good: Neon (4.6) Build id: Z20160511-1546 | Known good: 4.4.1.v-2_11-201605041057-92a3ed3 Use the Eclipse update site and let eclipse pull it down. http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site | Known good: 0.13.8 | I found with this version I had to use the Eclipse update site to pull down/install Eclipse Java Development Tools (3.12.0.v20160606-1100 in order to get the tests to run using JUNIT4. -Taylor Wise |
2017-03-27 | Graphical errors: Neon.2 (4.6.2) Build id: 20161208-0600 | Known good: 4.4.1.v-2_11-201605041057-92a3ed3 Use the Eclipse update site and let eclipse pull it down. http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site | Known good: 0.13.8 | I've found that this build of Neon.2 does not present with the JDT Weaving error. This error presents itself when you install the Scala IDE and goes away when you remove it. This is an error I encountered when Fedora updated Neon. I had to go and find/use and older build of 4.6.2 using the Eclipse website (not the one that comes with Fedora). It seems as though there are graphical errors. Sometimes the menu bar isn't in the right place or portions of the menu/screens will be cut-off. This can make it difficult to access certain features/buttons. I'm not sure if this is due to the fact I'm using Fedora 25 or if it's an actual issue with Eclipse. The version of Eclipse that comes through Fedora's software site does not present with the graphical issues. But when you go to add Scala to it you will receive the JDT Weaving error. The version of Eclipse that comes from Scala does not have the JDT Weaving error, but has graphical errors. -Taylor Wise |
Follow the instructions below for specific platforms.
Go to: http://www.eclipse.org/
You will be installing Eclipse IDE for Java EE Developers or Eclipse for Java Developers. Select the download link appropriate for your version of Linux (32-bit vs. 64-bit)
Select the appropriate mirror and Save the file to your local machine making note of the location.
Open a Terminal and cd to the location where you saved the file.
Type the following command in the Terminal (substitute the file name you downloaded for the example here):
$ tar -zxvf eclipse-jee-indigo-SR2-linux-gtk-x86_64.tar.gz |
This will extract the 'eclipse' folder to this location.
If you are not happy with this location (in my case it's in Downloads) you can move it to a more convenient location
$ cd ~ $ mkdir Programs $ mv Downloads/eclipse Programs |
The above just creates a directory called Programs in your Home and moves the 'eclipse' folder and its contents to this new location.
We need to establish what our HOME directory is by entering the following into the Terminal:
$ echo $HOME |
The value returned back in my case is "/home/developer". In your case it would be "home/<username>".
Now we need to make it convenient to execute Eclipse.
$ su $ touch /usr/bin/eclipse $ chmod 755 /usr/bin/eclipse $ vi /usr/bin/eclipse |
In the next step, ECLIPSE_HOME will be "HOME/Programs/eclipse".
Enter the following into the file:
#!/bin/bash export ECLIPSE_HOME="/home/developer/Programs/eclipse" $ECLIPSE_HOME/eclipse $* |
Save the file.
Back in the terminal, enter the following:
$ ln -s /usr/bin/eclipse /bin/eclipse $ vi /usr/share/applications/eclipse.desktop |
Enter the following into the file:
[Desktop Entry] Encoding=UTF-8 Name=Eclipse Comment=Eclipse IDE Exec=eclipse Icon=/home/developer/Programs/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;Application;Development; StartupNotify=true |
The above simply creates a shortcut in Applications that you can use rather than always typing 'eclipse' in the Terminal to start Eclipse. Save the file.
Back in the Terminal, cd to the eclipse directory:
$ cd ~/Programs/eclipse $ chown -R developer:developer configuration/ $ exit |
The above simply prevents the "Invalid Configuration Location" error.
At this point, you have two ways to start Eclipse. Applications -> Eclipse Shortcut or you can simply type 'eclipse' in the Terminal.