Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to install eclipse Juno on 12.04. I did all the things instructed in this link.

But whenever I install any new software (Say CDT or Pydev) on Eclipse, the new softwares are gone upon opening the Eclipse app again. I then have to open Eclipse again with root privileges to install all the software.

I also ran into many problems with linking the include library for Eclipse CDT.

Can anyone help me with installing Juno in a way that I do not need root access every time I change configurations in Eclipse?

share|improve this question
2  
I've updated the guide to clarify that you shouldn't run Eclipse as root while updating packages (or under most circumstances). If you install Eclipse as root, chown -R Eclipse's folder and then run Eclipse as yourself/a normal user, your installed packages should work. –  Mark Loiseau Oct 4 '12 at 18:12

8 Answers 8

up vote 10 down vote accepted

How to install Eclipse Juno WITHOUT the need to change permissions

  1. First, remove all previous versions of Eclipse. If you would like: save your /workspace directory (cut and post the entire directory into your ~/
  2. Download Eclipse from their official website (I used "eclipse-mobile-juno-linux-gtk-x86_64.tar.gz")
    But like was stated earlier, make sure that you have 32 and/or 64 bit versions of java available to match your Eclipse install. (I have BOTH openjdk-6 and -7-jre installed from Synaptic Package Manager)
    • You can add package pieces later if the eclipse-mobile installation doesn't contain everything you want. For example, Linux Tools here.
    • Other package instructions are available from the download page, via the links on the left.
  3. To avoid permissions issues, I unpacked it to ~/bin and archive manager put Eclipse into its own 'eclipse' subdirectory there.
  4. Download the Android SDK, and so that future upgrades of Eclipse and Ubuntu don't break it, unpack it to ~/bin/eclipse/dropins.
  5. Developer.android.com instructs you to:

    On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk.

  6. However, when I downloaded the linux version of Android SDK, there was no file "android sdk."
  7. Instead, navigate to to the tools path (in my case ~/bin/eclipse/dropins/android-sdk-linux/tools) and [right-click] on "android" to change its properties to executable.

    android file properties dialog: permissions tab
  8. Now you can double-click to run android, and download the packages you like.
    • Since everything is in your home directory, you don't need to modify your PATH environment variable (as per the developer instructions).
  9. Download and install the ADT plugin from http://developer.android.com/sdk/installing/installing-adt.html as per the normal instructions.
    • Configure the plugin with the path used, in this example /home/clayton/bin/eclipse/dropins/android-sdk-linux
    • If you want to install more packages from step-8 after step-9, from the Eclipse drop-down menu choose Window > Android SDK Manager
  10. Navigate to ~/bin/eclipse and make sure you mark "eclipse" as executable as well (see step 7 for a refresher). [Right-click] and [Make link]. Move this shortcut to the desktop.
    • I went to the extra step of changing the icon for eclipse to the provided "icon.xpm" in the same subdirectory.
  11. From step 1, move your "workspace" directory...or don't. But specify it as your application workspace in the dialog and you'll be able to import any existing projects with ease (those instructions would be for a different Q&A).

share|improve this answer

Generally, these contains source files and as far as I know you'll have to manually install them using the commands.

Ubuntu software center can install only packaged files(i.e ".deb").

Ubuntu software center can't install the source files that you have mentioned.

share|improve this answer
    
make install need root previlege –  user61928 Oct 2 '12 at 14:12
1  
@linuxandunix it cannot be done like this... you have to just run the eclipse binary ie. In terminal : ./eclipse –  Pranit Bauva Oct 2 '12 at 14:32
    
@PranitBauva : I was just giving a general example of installing source files. I hadn't actually checked the contents of the mentioned .tar.gz file. –  linuxandunix Oct 2 '12 at 20:03

You don't have to install it just run it:

tar -xvf eclipse-jee-juno-SR1-linux-gtk.tar.gz

cd eclip

chmod +x eclipse

./eclipse

share|improve this answer

It is not possible to use your downloaded file with the Ubuntu Software Center since it needs prepackaged files matching your Ubuntu version.

However, the current version of Eclipse in Ubuntu is 3.7.2. If you want to use the current one (4.2), you have to install it manually.

To see how this is done, please see Install Eclipse Juno on 12.04.

share|improve this answer
    
@maythux I think you misunderstood the initial question. The user clearly states that he does not want to install Eclipse manually but how to use the USC with his existing download. If however he decides to install manually anyway, all information he needs is provided in the link "Install Eclipse Juno on 12.04". –  Stephan Windmüller Oct 2 '12 at 13:39
    
thanks i see it now –  user61928 Oct 2 '12 at 13:46

I have installed Eclipse in following manner:

  1. Remove current installation:

    sudo apt-get purge eclipse*
    
  2. Install eclipse again with CDT

    sudo apt-get install eclipse eclipse-CDT
    

    After that remove, .eclipse folder from your home directory and run Eclipse and check your C/C++ project.

share|improve this answer
1  
I agree with you on that but the eclipse version that gets installed through Ubuntu's Repositories is Indigo. And I want to install Eclipse Juno. –  veepsk Sep 10 '12 at 20:34
    
Sorry, I somehow misnoticed that :( –  Misery Sep 11 '12 at 6:38

I referred to this guide.

I recommend that you follow this guide to installing juno and android sdk rather than the Android Developer website's. it's thorough and quick.

The only downside is that you have to refer to your /opt directory and use the terminal to invoke eclipse. In other words, there isn't a physical button for Ubuntu just yet.

Hope this helps!

share|improve this answer

Silly question, but... did you run the following, as stated in the link you posted?

chown -R USER:USER eclipse

This would allow you to run eclipse as USER and make configuration changes.

You can verify that all files in the installed directory are owned by USER by doing a search of the entire install directory (/opt/eclipse)

find /opt/eclipse/ | xargs ls -ld | grep -v USER

This shouldn't return anything if everything is owned by USER

share|improve this answer

Download the archive from the official website, unzip it in /opt/eclipse/ (or your preferred directory), and run the installer.

share|improve this answer
    
I dont mean to be rude but that is what was mentioned in link in my original post. And it did not work for me somehow. –  veepsk Sep 10 '12 at 21:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.