Difference between revisions of "Eclipse"
Line 7: | Line 7: | ||
====Linux==== | ====Linux==== | ||
− | ==== | + | =====Core installation===== |
* Download the eclipse.deb package | * Download the eclipse.deb package | ||
* Install the package using: | * Install the package using: | ||
Line 22: | Line 22: | ||
− | ====Create a launcher==== | + | |
+ | =====JavaHL for Subclipse===== | ||
+ | Source: [http://subclipse.tigris.org/wiki/JavaHL Subclipse JavaHL wiki] | ||
+ | |||
+ | Linux requires the JavaHL client for Subclipse: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | sudo apt-get install libsvn-java | ||
+ | </syntaxhighlight> | ||
+ | Find the library file: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | sudo find / -name libsvnjavahl-1.so | ||
+ | </syntaxhighlight> | ||
+ | You should have something like: | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | guillaume@VC076:~/DEV/eclipse$ sudo find / -name libsvnjavahl-1.so | ||
+ | /usr/lib/x86_64-linux-gnu/jni/libsvnjavahl-1.so | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Now, update your eclipse.ini configuration | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | vim eclipse.ini | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | Add the path without '/' at the end. | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | -vmargs | ||
+ | -Djava.library.path=/usr/lib/x86_64-linux-gnu/jni | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | → Note: Ubuntu 13.10 as only the JavaHL 1.7 library. So you should not install SVN client 1.8.x but '''SVN client 1.7.x''' !! | ||
+ | |||
+ | |||
+ | =====Create a launcher===== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo vim /usr/share/applications/eclipse.desktop | sudo vim /usr/share/applications/eclipse.desktop | ||
Line 41: | Line 73: | ||
− | =====Ubuntu 13.10 | + | ======Ubuntu 13.10====== |
+ | |||
+ | =======Launcher fix======= | ||
!!! Ubuntu 13.10 bug !!! | !!! Ubuntu 13.10 bug !!! | ||
If the menu doesn't appear correctly you must create the following launcher: | If the menu doesn't appear correctly you must create the following launcher: | ||
Line 59: | Line 93: | ||
− | ===== | + | =======SWT libraries fixes======= |
On the latest distribution Eclipse sometimes crashed due to libswt-*.so | On the latest distribution Eclipse sometimes crashed due to libswt-*.so | ||
Line 66: | Line 100: | ||
apt-get install libx11-dev libxtst-dev libgl1-mesa-dev libglu1-mesa-dev libgtk-3-dev | apt-get install libx11-dev libxtst-dev libgl1-mesa-dev libglu1-mesa-dev libgtk-3-dev | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 19:04, 24 November 2013
Contents
Installation
Download eclipse from the official website: http://eclipse.org/downloads/
Take the Eclipse IDE for Java EE developers version.
Linux
Core installation
- Download the eclipse.deb package
- Install the package using:
sudo dpkg -i eclipse.deb
If you encounter some errors during installation, just do:
sudo apt-get install -f && sudo dpkg -i eclipse.deb
- Launch application by running ./eclipse/eclipse
JavaHL for Subclipse
Source: Subclipse JavaHL wiki
Linux requires the JavaHL client for Subclipse:
sudo apt-get install libsvn-java
Find the library file:
sudo find / -name libsvnjavahl-1.so
You should have something like:
guillaume@VC076:~/DEV/eclipse$ sudo find / -name libsvnjavahl-1.so
/usr/lib/x86_64-linux-gnu/jni/libsvnjavahl-1.so
Now, update your eclipse.ini configuration
vim eclipse.ini
Add the path without '/' at the end.
-vmargs
-Djava.library.path=/usr/lib/x86_64-linux-gnu/jni
→ Note: Ubuntu 13.10 as only the JavaHL 1.7 library. So you should not install SVN client 1.8.x but SVN client 1.7.x !!
Create a launcher
sudo vim /usr/share/applications/eclipse.desktop
Put the following content where /home/guillaume/DEV/eclipse is the path to Eclipse.
[Desktop Entry]
Version=4.3.0
Name=Eclipse
Comment=IDE for all seasons
Exec=/home/guillaume/DEV/eclipse/eclipse -clean
Icon=/home/guillaume/DEV/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Utility;Application
Ubuntu 13.10
=Launcher fix=
!!! Ubuntu 13.10 bug !!! If the menu doesn't appear correctly you must create the following launcher:
[Desktop Entry]
Version=4.3.0
Name=Eclipse
Comment=IDE for all seasons
Exec=env UBUNTU_MENUPROXY=0 /home/guillaume/DEV/eclipse/eclipse -clean
Icon=/home/guillaume/DEV/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=Utility;Application
Don't forget the Exec=... line! The key is "env UBUNTU MENUPROXY=0"
=SWT libraries fixes=
On the latest distribution Eclipse sometimes crashed due to libswt-*.so
To resolve that, install the development libraries:
apt-get install libx11-dev libxtst-dev libgl1-mesa-dev libglu1-mesa-dev libgtk-3-dev