LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2004, 01:59 AM   #1
JonnyW247
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Rep: Reputation: 0
Eclipse IDE - can only run as root not as user




I'm trying to get the Eclipse IDE to work correctly in user mode. After installing the package, I have only been able to successfully get the program to work as root. In user mode, the program quickly exits out and puts this into the .log file:

SESSION Mar 02, 2004 00:56:16.49 ----------------------------------------------
java.fullversion=J2RE 1.4.1 IBM build cxia321411-20030930 (JIT enabled: jitc)
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -data /home/jb/Program/
!ENTRY reference:file:/usr/local/bin/eclipse/plugins/org.eclipse.core.runtime_3.0.0/ 0 0 Mar 02, 2004 00:56:16.51
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.runtime.PlatformActivator.start()
*blah blah blah blah*
*blah blah blah blah*
*blah blah blah blah*



I had to point Eclipse over to the IBM JRE since it isn't compatible with Sun's JRE.

I was wondering if anybody has played around with this Eclipse IDE and if anybody had gotten it to work in user mode?

Thanks in advance,
JW
 
Old 03-02-2004, 02:03 AM   #2
HNjerry
LQ Newbie
 
Registered: Feb 2004
Location: France
Distribution: mandrake 9.2
Posts: 6

Rep: Reputation: 0
I'm now working Eclipse 2.1.2 in user mode

which system is mandrake 9.2
and JRE is JDK1.4.2
 
Old 03-02-2004, 07:28 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
If you installed Eclipse as root, the file permissions may be wrong. I'd take a look in the Eclipse directory and make sure that users are allowed to read and execute the files.

Quote:
I had to point Eclipse over to the IBM JRE since it isn't compatible with Sun's JRE.
That's the first I've heard of this.....I've been using Eclipse with a Sun JRE for quite some time now without any troubles.
 
Old 03-02-2004, 08:59 AM   #4
JonnyW247
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Original Poster
Rep: Reputation: 0
JDK, JRE, SDK, easy to get mixed up :P

I'm running RH9.

At first, I also thought it may be file permissions, but doing a chown and chgrp for all the files in the eclipse directory and subdirectorys still did not accomplish anything.

I just did a quick test here to see if it was the fact taht i installed it as root... Turns out that it is still erroring out when installed as user.

Also, perhaps you were able to run it because you had the newest JVM? I've been trying to get onto the Sun website, but it seems to be down right now.

Any other ideas? I mean, it works if ran as root, even if I am currently signed in as user, but it doesn't work as user.



JW

Last edited by JonnyW247; 03-02-2004 at 09:00 AM.
 
Old 03-02-2004, 09:17 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Turns out that it is still erroring out when installed as user.
I think you missed my point. You need to do a ls -l on the directory to see who owns the files and who has permission to run them.

Quote:
Also, perhaps you were able to run it because you had the newest JVM?
Believe me, thats not it. I've been using Eclipse on both Linux and Windows with many different Java versions. However, do you know if Java works at all on your machine? Outside of Eclipse, can you compile a simple "Hello World" and have it run? I know you say that you use IBM Java, but there have been issues in the past with Java compiled with compilers that are incompatible with many Linux distros. That is one of the main reasons for the popularity of Blackdown Java.
 
Old 03-02-2004, 04:39 PM   #6
JonnyW247
LQ Newbie
 
Registered: Jan 2004
Posts: 11

Original Poster
Rep: Reputation: 0
No, I got your point. Hence why I did the chown and chgrp commands to begin with... to no avail....

Also, I just tryed an entire re-install of RH9, and from a fresh new install, it is still doing the same exact thing.

Perhaps it might be the IBM JDK?

JW
 
Old 03-03-2004, 07:15 AM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Perhaps it might be the IBM JDK?
That would certainly be high on my list of things to check. Before installing a new JDK, I'd be tempted to write a "Hello World" kind of program in a regular text editor and see if you can compile and run from the command line. If you can, that suggests the problem lies with Eclipse. If you can't, then messing with the JDK would be in order.
 
Old 03-22-2004, 02:24 PM   #8
Alfred_Neumann
LQ Newbie
 
Registered: Mar 2004
Location: Trondheim, Norway
Distribution: gentoo
Posts: 1

Rep: Reputation: 0
I had the same problem. What I did to solve it was to issue the following command as root:
chown -R user /home/user/workspace

I think the problem was that this directory was not writable and owned by root.
 
Old 12-12-2004, 03:09 PM   #9
cidex
LQ Newbie
 
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
I am having the same issue on Fedora Core 3 with the sun j2re. Has anyone resolved this?

thanks,
-a.n.
 
Old 12-28-2004, 09:28 PM   #10
JulianHtun
LQ Newbie
 
Registered: Dec 2004
Posts: 1

Rep: Reputation: 0
I had the same issue only ROOT can run Eclipse.

The problem is there are 2 version of java. The one from 1.4.2 JDK and the other is from Linux's. ROOT's $PATH and other users' $PATH are not the same.

If you look at root's $PATH, in my case, my $JAVA_HOME come before /usr/bin. If you do a "type java", you find that for root, it is the $JAVA_HOME/bin/java. For other use, it is qualifying from /usr/bin.

What I did is, I went to /usr/bin:
ln -sf $JAVA_HOME/bin/java .
ln -sf $JAVA_HOME/bin/javac .
 
Old 05-28-2016, 07:17 PM   #11
Finlay_
LQ Newbie
 
Registered: May 2016
Posts: 1

Rep: Reputation: Disabled
Wink Eclipse-mars

This thread needs an update

If you happen to run Eclipse as root, Eclipse will create a couple of directories as root.

Assuming you've put Eclipse in a directory such as /usr/local/eclipse-mars/ these directories will be found at /usr/local/eclipse-mars/configurations

drwxr-xr-x 3 root root 4096 May 29 00:03 org.eclipse.core.runtime
drwxr-xr-x 3 root root 4096 May 29 00:03 org.eclipse.equinox.app
drwxr-xr-x 9 root root 4096 May 29 00:04 org.eclipse.osgi

So just chown recursively, for example ...

chown -R ali:ali eclipse-mars/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do you run as root or user and why? aysiu Linspire/Freespire 7 10-04-2005 02:19 AM
running tomcat with eclipse as non-root user javcerty Linux - Software 1 03-05-2005 07:36 PM
I can not run X as root, only as user dtpmike Fedora 5 11-24-2004 04:45 PM
how do I make sure that the user that is going to run the script is a root user??? nikold01 Linux - General 3 09-10-2004 07:54 AM
anything better than eclipse ide for c/c++? rgiggs Programming 6 06-12-2004 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration