Solved

How do I get past an "Invalid Configuration" error when attempting to run Eclipse in a Linux Mint 16 environment?

Posted on 2014-01-07
7
2,192 Views
Last Modified: 2014-01-16
Hi:

Linux/Eclipse newbie here again.

I have Eclipse (Juno) installed on Linux Mint 16.
When I attempt t run it, I get the following error message.

The error found Locking is not possible in the directory

Invalid Configuration Location
"/usr/local/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.lockling=none" as a VM argument. 'usr/local/eclipse/configuration/org.eclipse.orgi/.manager/.fileTableLock (Permission denied)"

I understand that it has to do with it originally was installed in a directory that has root privileges . I saw instructions that I need to go to the configurations directory of eclipse and change the permissions for the files there so all users can have access to the program

I tried running the following:
cd /opt/eclipse/configurations
 chmod -R g+rwx .

Unfortunately, I still get the same results.
I tried googling and found a lot of other different (somewhat confusing) solutions.

Can someone point me in the right direction to fix this issue?

Thanks,
JohnB
0
Comment
Question by:jxbma
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 35

Expert Comment

by:Dan Craciun
ID: 39764368
You've given read/write/execute rights to the group from which the owner (root) is a part of.
If you want for everyone to have rights, use chmod -R a+rwx.

If that's problematic security-wise, change the owner of that folder (with chown) to the user Eclipse runs on. You find that user with ps -aux | grep "eclipse"

HTH,
Dan
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 39764490
I tried running the following:
cd /opt/eclipse/configurations
 chmod -R g+rwx .
But that's not the directory the error message complains about:
'usr/local/eclipse/configuration/org.eclipse.orgi/.manager/.fileTableLock (Permission denied)"
That's the directory the Eclipse user needs write perms on
0
 
LVL 1

Author Comment

by:jxbma
ID: 39767176
Hi CEHJ:

This directory path does not exist on my configuration:

'usr/local/eclipse/configuration/org.eclipse.orgi/.manager/.fileTableLock (Permission denied)"

JB
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 29

Expert Comment

by:serialband
ID: 39767283
You may have to create the path manually or just create a link if /usr/local/eclipse/configuration/org.eclipse.os.gi/ isn't there.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39767650
This directory path does not exist on my configuration:
I have Eclipse (Juno) installed on Linux Mint 16.
How did you install it? If your answer is: 'manually' then i assume there's no Petra package for it. You'll probably need to do something like the following:

http://tutorialforlinux.com/2013/07/24/how-to-install-latest-eclipse-4-3-kepler-jee-for-linux-mint-15-rc-olivia-mate-3264bit-easy-guide/
0
 
LVL 1

Author Closing Comment

by:jxbma
ID: 39786326
I had to chmod 777 to all directories in that path (recursively).
I also had to change ownership (chown) to my user name.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39786437
I had to chmod 777 to all directories in that path (recursively).
That doesn't sound very good at all.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Fine Tune your automatic Updates for Ubuntu / Debian
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question