Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 226976 - Can't launch IDE from linux
Summary: Can't launch IDE from linux
Status: RESOLVED DUPLICATE of bug 215557
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.4   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: P2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-14 13:13 EDT by John P. A. Verhaeg CLA
Modified: 2008-04-18 21:44 EDT (History)
2 users (show)

See Also:


Attachments
Configuration log file containing launch error (1.20 KB, text/x-log)
2008-04-14 13:13 EDT, John P. A. Verhaeg CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John P. A. Verhaeg CLA 2008-04-14 13:13:41 EDT
Created attachment 95947 [details]
Configuration log file containing launch error

Build ID: I20080409-1425

Steps To Reproduce:
1. Download M6 for Linux x86/GTK-2
2. Create launcher for IDE
3. Launch
4. Get attached configuration log


More information:
Changing to the installation folder from a terminal session and launching from there works fine.
Comment 1 John P. A. Verhaeg CLA 2008-04-14 13:14:36 EDT
Forgot to mention that this wasn't a problem with M5.
Comment 2 John P. A. Verhaeg CLA 2008-04-14 16:00:22 EDT
Just discovered my "More information" in the description is incorrect - I was entering simply "eclipse" without a preceding "./", so the default M5 version in /usr/bin was running (I'm still pretty new to linux).  So M6 isn't running for me no matter how I attempt to start it.
Comment 3 Paul Webster CLA 2008-04-18 10:11:42 EDT
Are you in M5 or M6?  There was a linux-related problem that should have been fixed in M6 about having to run from the install directory.

PW
Comment 4 John P. A. Verhaeg CLA 2008-04-18 10:28:45 EDT
In step one of the original description, I indicated this is in M6, but I'm really on M6a.  And despite my initial description, this is not related to running from the install folder.  It doesn't run no matter how I start it.  I was originally led to believe running from the install folder worked, but that was just because I forgot to prepend "eclipse" with "./", so what was actually being run was the eclipse pointed to by PATH, which was an M5 installation.  I tried this again on a new linux box with no other Eclipse installations but M6, and I get the same problem regardless of how I try to run it.  Others in my office are having the same experience.
Comment 5 Andrew Overholt CLA 2008-04-18 10:50:55 EDT
If I explode a download of I20080410 and do this from a parent (grandparent?) directory:

./I20080410/eclipse/eclipse -data /tmp/testnotfromdir

things work for me.

P.S. Hi John.  I guess we work for the same company.  Nice to "meet" you :)
Comment 6 John P. A. Verhaeg CLA 2008-04-18 10:56:48 EDT
Nice to meet you Andrew.  I just tried the same thing on my box, and mine still fails.  Just out of curiosity, are you running RHEL or Fedora (not that it should matter)?  I'm running 32-bit Fedora 8.
Comment 7 Andrew Overholt CLA 2008-04-18 11:28:09 EDT
(In reply to comment #6)
> Nice to meet you Andrew.  I just tried the same thing on my box, and mine still
> fails.  Just out of curiosity, are you running RHEL or Fedora (not that it
> should matter)?  I'm running 32-bit Fedora 8.

I'm on the same.

Is your installation read-only, by any chance?
Comment 8 John P. A. Verhaeg CLA 2008-04-18 11:58:38 EDT
Ah, I believe you've stumbled onto the problem.  I installed Eclipse as root in /usr/local, just as I did in the past with M5.  I can launch M5 without issue from my own non-root user, but not M6.  Launching M6 as root works.  Do I have to add permissions for certain folders/artifacts in M6 for other (or an appropriate group)?  If so, what changed between M5 and M6 in this regard?
Comment 9 Andrew Overholt CLA 2008-04-18 12:12:02 EDT
(In reply to comment #8)
> Ah, I believe you've stumbled onto the problem.  I installed Eclipse as root in
> /usr/local, just as I did in the past with M5.  I can launch M5 without issue
> from my own non-root user, but not M6.  Launching M6 as root works.  Do I have
> to add permissions for certain folders/artifacts in M6 for other (or an
> appropriate group)?  If so, what changed between M5 and M6 in this regard?

This is an issue we're working on with p2.  It's because the profile registry that's part of the install isn't writable by your regular user.  If you want to install M6 like this, you could try chmod'ing the p2 directory but there may be other issues with caches.  We'll hopefully have it sorted out for M7.
Comment 10 Pascal Rapicault CLA 2008-04-18 21:44:20 EDT

*** This bug has been marked as a duplicate of bug 215557 ***