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.

Well , I've tried to compile and install Eclipse 3.6.2 using the instructions in : How to update Eclipse 3.5.2 to 3.6.2? .

But Eclipse doesn't open.

user@s-HP-550:~$ eclipse
bash: /usr/bin/eclipse: Permission denied

Edit :

user@s-HP-550:~$ ls -l /usr/bin/eclipse
-rw-r--r-- 1 root root 70 2011-06-12 18:15 /usr/bin/eclipse 


user@s-HP-550:~$ file /usr/bin/eclipse
/usr/bin/eclipse: POSIX shell script text executable
share|improve this question

3 Answers 3

up vote 4 down vote accepted

I see a little error in that procedure.

Show the output of

ls -l /usr/bin/eclipse

if it is not executable, do

sudo chmod +x /usr/bin/eclipse

Il gives an error of unquoted string, edit it

sudo nano /usr/bin/eclipse

and add a double quote at end of "$@, that should read "$@"

share|improve this answer
    
@enzotib: post edited –  Binarylife Jun 12 '11 at 15:48
    
So sudo chmod +x /usr/bin/eclipse and retry to launch it. –  enzotib Jun 12 '11 at 15:49
    
@enzotib another error : /usr/bin/eclipse: 3: Syntax error: Unterminated quoted string –  Binarylife Jun 12 '11 at 15:51
    
@binarylife: see my edit –  enzotib Jun 12 '11 at 15:55
2  
Edited the original procedure, so that others will avoid the problems. –  enzotib Jun 12 '11 at 16:13

Locking is not possible in the directory "/usr/lib/eclipse/configuration/org.eclipse.osgi". A common reason is that the file system or Runtime Environment does not support file locking for that location. Please choose a different location, or disable file locking passing "-Dosgi.locking=none" as a VM argument.

/usr/lib/eclipse/configuration/org.eclipse.osgi/.manager/.fileTableLock (Permission denied)
share|improve this answer

I am assuming that you installed Eclipse by unpacking a .tgz distribution obtained from the eclipse.org site. such that

/path/to/eclipse

represents absolute file path of the installation directory - where

/path/to/eclipse could ACTUALLY BE /usr/lib/eclipse - for example.

Given this, make sure that the eclipse directory itself and all its contents (sub-directories etc. etc.) are owned by root and belong to the root group - i.e.

cd /path/to

chown -R root eclipse
share|improve this answer

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.