LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Eclipse IDE - can only run as root not as user (https://www.linuxquestions.org/questions/linux-software-2/eclipse-ide-can-only-run-as-root-not-as-user-152490/)

JonnyW247 03-02-2004 01:59 AM

Eclipse IDE - can only run as root not as user
 
:Pengy:

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*

:confused:

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

HNjerry 03-02-2004 02:03 AM

I'm now working Eclipse 2.1.2 in user mode
 
which system is mandrake 9.2
and JRE is JDK1.4.2

Hangdog42 03-02-2004 07:28 AM

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.

JonnyW247 03-02-2004 08:59 AM

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.

:confused:

JW

Hangdog42 03-02-2004 09:17 AM

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.

JonnyW247 03-02-2004 04:39 PM

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

Hangdog42 03-03-2004 07:15 AM

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.

Alfred_Neumann 03-22-2004 02:24 PM

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.

cidex 12-12-2004 03:09 PM

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

thanks,
-a.n.

JulianHtun 12-28-2004 09:28 PM

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 .

Finlay_ 05-28-2016 07:17 PM

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/


All times are GMT -5. The time now is 02:46 PM.