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,163 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
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ejb wildfly example 2 69
CentOS 7 Linux for HP DL380 G4 32Bits 7 71
Java Eclipse Loop 3 28
simple bash script needed to unpack tar.gz 4 24
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

679 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