Eclipse not depending on a jdk

Bug #576952 reported by Frank Groeneveld
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
eclipse (Ubuntu)
Fix Released
Low
Unassigned
Lucid
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: eclipse

It seems wrong to me that I can run:
apt-get install eclipse
And I will end up with a "broken" Eclipse, namely one that can't compile anything, because only a JRE was installed, not JDK (so javac is missing).

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: eclipse 3.5.2-2ubuntu4
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic i686
Architecture: i386
Date: Fri May 7 14:06:02 2010
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100411)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: eclipse
xulrunner-versions: /usr/lib/xulrunner-1.9.2.3

Revision history for this message
Frank Groeneveld (frankgroeneveld) wrote :
Benjamin Drung (bdrung)
Changed in eclipse (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Niels Thykier (niels-thykier) wrote : Re: [Bug 576952] [NEW] Eclipse not depending on a jdk

Frank Groeneveld wrote:
> Public bug reported:
>
> Binary package hint: eclipse
>
> It seems wrong to me that I can run:
> apt-get install eclipse
> And I will end up with a "broken" Eclipse, namely one that can't compile anything, because only a JRE was installed, not JDK (so javac is missing).
>

Hi

I am thinking a Recommends is better here because it is possible to use
eclipse without a java compiler (especially if you are not using eclipse
for java).
  This would also make sense for eclipse-jdt, since some (language)
plugins depends on eclipse-pde and -pde depends on -jdt. But with a
Recommends, you will get the compiler by default (unless you explicitly
request apt-get not to get it).

~Niels

Revision history for this message
Frank Groeneveld (frankgroeneveld) wrote :

2010/5/8 Niels Thykier <email address hidden>:
> But with a Recommends, you will get the compiler by default
> (unless you explicitly request apt-get not to get it).

Seems like the best solution to me :)

Revision history for this message
Benjamin Drung (bdrung) wrote :

Yes, eclipse-jdt should recommend a JDK.

Changed in eclipse (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted eclipse into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in eclipse (Ubuntu Lucid):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Frank Groeneveld (frankgroeneveld) wrote : Re: [Bug 576952] Re: Eclipse not depending on a jdk

Seems to work find, thanks :)

Frank

2010/5/9 Martin Pitt <email address hidden>:
> Accepted eclipse into lucid-proposed, the package will build now and be
> available in a few hours. Please test and give feedback here. See
> https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
> enable and use -proposed. Thank you in advance!
>
> ** Changed in: eclipse (Ubuntu Lucid)
>       Status: New => Fix Committed
>
> ** Tags added: verification-needed
>
> --
> Eclipse not depending on a jdk
> https://bugs.launchpad.net/bugs/576952
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eclipse - 3.5.2-3

---------------
eclipse (3.5.2-3) unstable; urgency=low

  [ Benjamin Drung ]
  * Set org.eclipse.swt.browser.XULRunnerPath explicitly. (LP: #546518)
  * Set MOZILLA_FIVE_HOME instead of LD_LIBRARY_PATH and
    org.eclipse.swt.browser.XULRunnerPath (LP: #559229, #553779).
  * Add apport hook to collect more useful data for bug reports.
  * Improve xulrunner path detection to work on Debian and Ubuntu.

  [ Niels Thykier ]
  * Added missing copyright statement about ownership over the Debian
    packaging.
  * Made eclipse use version depends on -jdt and -pde to ensure smoother
    upgrades from older versions.
  * Added reportbug helpers to eclipse-platform and eclipse.
  * Added Recommends on default-jdk | sun-java6-jdk for eclipse-jdt.
    (LP: #576952)
  * Added patch to deal with broken help-menu. (Closes: #576106, LP: #549904)
 -- Benjamin Drung <email address hidden> Sat, 08 May 2010 23:17:14 +0200

Changed in eclipse (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package eclipse - 3.5.2-2ubuntu4.1

---------------
eclipse (3.5.2-2ubuntu4.1) lucid-proposed; urgency=low

  [ Niels Thykier ]
  * Added Recommends on default-jdk | sun-java6-jdk for eclipse-jdt.
    (LP: #576952)
  * Added patch to deal with broken help-menu. (Closes: #576106, LP: #549904)
 -- Benjamin Drung <email address hidden> Sun, 09 May 2010 00:39:43 +0200

Changed in eclipse (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
DSHR (s-heuer) wrote :

On my installation your change leads to the whole openjdk java runtime + dk being installed.

As default java I have sun-java6 installed. To fulfill the requirement on a jdk, aptitude is now installing a second java runtime leading to various problems. There was a reason for me to use sun-java6 in the first place!

A jdk could be suggested, but AFAIK there is no nead for it to do serious java development in eclipse. The java compiler ist builtin!

I had to manually install sun-java6-jdk from partner before upgrading to avoid the installation of openjdk.

Revision history for this message
Thibaut Robert (thibaut-robert) wrote :

I agree with the previous post, the initial predicate that motivated that change is wrong. Java development in eclipse does not require a jdk at all. Maybe a suggest depency would be better for us who don't want a jdk

Revision history for this message
Frank Groeneveld (frankgroeneveld) wrote :

How come it doesn't work for me without a jdk then?

Frank

On 16 mei 2010 10:05, "Thibaut Robert" <email address hidden> wrote:

I agree with the previous post, the initial predicate that motivated
that change is wrong. Java development in eclipse does not require a jdk
at all. Maybe a suggest depency would be better for us who don't want a
jdk

--
Eclipse not depending on a jdk
https://bugs.launchpad.net/bugs/576952
You received this bug not...

Revision history for this message
DSHR (s-heuer) wrote :

If you only use the standard eclipse build system, you end up using the eclipse java compiler:

$ aptitude show libecj-java
Paket: libecj-java
...
Beschreibung: Eclipse Java compiler (library)
 This package provides a standalone version of the Eclipse JDT compiler library
 which is distributed as part of Eclipse. It passes the JCK (Java Compatibility
 Kit) and is compatible with Java 1.3, 1.4, 1.5, 1.6 and 1.7.

Maybe you use external builds in your projects?

If you want or have to use javac on the command line, you have to install an jdk.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.