I don't know why, but there does not seem to be a package ppa for juno yet. I had to use an alternative method to install. It really wasn't all that complicated in the end and this would probably work on the other flavours of Ubuntu too, but a word of warning:
Bear in mind, I did this on a clean install; you will need to move your old install to another directory if you want to avoid problems.
The first part I got from this person's blog but, as is oft' the way, I was guided through the easy bit, then suddenly, I must have become an expert or something, because I came to a part where it said: 'you will need to create a script in /usr/bin to be the "executable" for eclipse'
"...Eh? Oh righty then!"
I got on that... Only took several hours and, a complete reinstall of my OS, but here it is: The full instruction on how to do it. Get Juno on your Lubuntu 12.04, that is. Open terminal:
>>sudo add-apt-repository -y ppa:webupd8team/java
>>sudo apt-get update
>>sudo apt-get install -y oracle-jdk7-installerDownload eclipse Juno from here and go to the directory where you downloaded it to (usually Downloads).
>>cd Downloads
Extract whatever way you wish, I chose:
>>tar -zxvf eclipse-SDK-4.2-linux-gtk.tar.gzIf I was doing it on my 64 bit version it would have been:
>>tar -zxvf eclipse-SDK-4.2-linux-gtk-x86_64.tar.gz
(but right click >
extract works too.)Move the eclipse contents into this directory, like so:
>>
sudo mv eclipse /usr/lib/
Then I was failed by the rest of the blog and overwhelmed on my own! I eventually pieced random bits of the internet together, to figure out how to create the executable file and set the paths without it all falling apart (again).To be fair the rest of my instruction here is bits I took from this person's blog post about another distro of eclipse and ubuntu, the important difference to notice is that he installed in opt, whereas I kept with usr like the first blogger used. I did this because it felt like the right thing to do to stay more global, but I really cannot say which would be the more appropriate choice. Early days, but here's where I ended up:
>>sudo touch /usr/bin/eclipse
>>sudo chmod 755 /usr/bin/eclipseThe chmod 755 bit is you setting the permissions here's a description of it. Then:
>>sudo leafpad /usr/bin/eclipseBy the way, Leafpad is just a text editor. It could be anything you fancy (e.g. nano, gedit, kate etc etc), the important thing is that once you have the file open in the text editor you paste this into it:
#!/bin/sh
export ECLIPSE_HOME=" /usr/lib/eclipse/eclipse"
Save and close.
To create the icon, and set the paths inside it I needed to open a text editor to write up a new file called eclipse.desktop (created below)
>>sudo leafpad /usr/share/applications/eclipse.desktop Inside the file pasted this:
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse IDE
Exec=/usr/lib/eclipse/eclipse
Icon=/usr/lib/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true
Save and close.
Find eclipse now by going into programming menu and clicking on the eclipse icon which starts up Juno! (See comments for how to fix large icon in 12.10: It seems there is an update so paths are configured directly to install folder so you can rename accordingly.)
Great thanks for this tutorial!!! It worked (almost) flawlessly on Lubuntu 12.10 too. The only thing is that in the start menu, or whatever it is called, the icon is not resized, it shows the original huge picture (bigger than the menu itself), but I think, resizing icon.xpm should solve this problem. Anyway, thanks again!
ReplyDeleteI noticed that on upgrade to 12.10. It seemed to affect a few other icons in my menu too (but the eclipse one was most affected). Thanks for the tip.
ReplyDeleteThat could not have been more helpful. Off to my Java build.
ReplyDeleteto fix the icon in ubuntu simply use:
ReplyDeleteIcon=eclipse
instead of
Icon=/usr/lib/eclipse/icon.xpm shown here
You are half right. It seems it works to just put the icon file name without the path to fix sizing issues with .xpm icons that happens in 12.10. However, unless you specifically place an icon with the file name "eclipse" in the right directory that wouldn't do much for the problem because that icon wouldn't exist. Change to Icon=icon.xpm instead. That works.
DeleteI luv my new eclipse :D:D
ReplyDeleteproblem is that I have lubuntu 12.04 on ppc mac G5 and it shows the icon but it is not running, any help would be appreciated
ReplyDeleteIt sounds like you might have missed one of the early steps where you make the correct file executable, is this possible? Do you have an error message or does it just not open?
DeleteI'm having the same issue, just won't open. Any suggestions?
DeleteIt's most likely that you didn't make the usr/bin/eclipse executable. Could you have skipped this step without noticing? You can find out by right clicking on the file and checking the permissions on it via properties.
Delete