Hardy: netbeans package dependencies

Asked by Leon on 2008-02-27

I'm using netbeans for some time now and I always installed it in ~/bin. But I saw that there was a netbeans 6.0 package for Hardy so I installed that instead.

When I installed netbeans apt installed icedtea-java7-jre AND sun-java6-jre for me. Why does netbeans rely on both packages? When I try to remove one of both packages, it tries to remove netbeans.

Here is the output I get from apt-get:

I installed netbeans with: sudo aptitude install netbeans

Question information

English Edit question
Ubuntu netbeans Edit question
No assignee Edit question
Last query:
Last reply:
Helton Dória (helton-doria) said : #1

Hi Leon,

I installed the netbeans 6 on a fresh installation of Hardy Alpha 5 and have not had this problem. Looking at the source package of netbeans, we see that it depends on icedtea-java7-jdk or sun-java6-jdk. As I had no jdk installed on the machine, apt-get automatically installed the icedtea-java7-jdk (which in turn caused the installation of icedtea-java7-jre), but not installed the sun-java6-jdk. If you have any other package that installed sun-java6-jdk, I suppose that the netbeans will depend on both jdks.

In your case, you reported that attempted to remove both jres and that caused the removal of netbeans. This happened because you probably have the two jdks installed on the machine and the jre packages are dependencies of them. Thus, while trying to remove a jre, you generate the removal of corresponding jdk, which in turn cause the removal of netbeans.



alesh (avymola) said : #2

I see the problem for example in netbeans dependency package libswingworker-java which depends on icedtea-java7-jre

Can you help with this problem?

Provide an answer of your own, or ask Leon for more information if necessary.

To post a message you must log in.