Why does Eclipse package insist on GNU Java?
I have just installed Ubuntu 7.04.
I want to do Java development with Sun JDK 6. I do not want GNU Java. So I installed the sun-java6-* packages and uninstalled gcj- and gij-related packages (I do not want GNU Java on my system at all). I made Sun Java the default java (sudo update-alternatives --config java).
After this I wanted to install eclipse with Synaptic. For some reason, this insists on installing the GNU Java packages again. This is not necessary - Eclipse does not need GNU Java. I now downloaded the Eclipse .tar.gz from www.eclipse.org and unpacked it manually. This is not ideal, since Eclipse is now not installed using the package management system.
I think the problem is in the following dependencies:
1. eclipse depends on: eclipse-jdt
2. eclipse-jdt depends on: eclipse-platform
3. eclipse-platform depends on: java-gcj-compat | java1-runtime | java2-runtime
The last two packages mentioned in that line (java1-runtime and java2-runtime) do not exist in the package list, so it insists on installing java-gcj-compat (GNU Java).
Are java1-runtime and java2-runtime obsolete package names? If so, please update this, so that I can install Eclipse via the package management system but without GNU Java.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- 2007-04-22
- Last reply:
- 2008-10-16
| loomy (loomy) said : | #1 |
I have the same problem as you. I think it falls into the "bug" classification!
| Michael Koch (konqueror) said : | #2 |
java1-runtime and java2-runtime are virtual packages. sun-java6-jdk provides java2-runtime.
The problem is that libtomcat5.5-java depends on java-gcj-compat. This depends should just be removed.
| eatmytag (eatmytag) said : | #3 |
I second loomy's suggestion that this is a bug.
| eatmytag (eatmytag) said : | #4 |
| Michael Koch (konqueror) said : | #5 |
I have filed https:/
| RAMNATH (ram-navar) said : | #6 |
I have the same problem as well......
| Michael Koch (konqueror) said : | #7 |
On current gutsy the issue is fixed.
| Hemanth (hemanth-hm) said : | #8 |
Can you help with this problem?
Provide an answer of your own, or ask Jesper de Jong for more information if necessary.

