Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:
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.
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.
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.
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.
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 .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.