Bug#369950: [Tom.Marble@Sun.COM: Re: Bug#369950: eclipse could is
not search in the right place for sun-java5-jdk]
Jeroen van Wolffelaar
jeroen at wolffelaar.nl
Mon Jul 10 00:55:42 UTC 2006
Message misfiled on the wrong bug, forwarding...
--Jeroen
----- Forwarded message from Tom Marble <Tom.Marble at Sun.COM> -----
Date: Sun, 09 Jul 2006 17:40:47 -0500
From: Tom Marble <Tom.Marble at Sun.COM>
Subject: Re: Bug#369950: eclipse could is not search in the right place for
sun-java5-jdk
To: Emil Nowak <emil5 at go2.pl>, 370296 at bugs.debian.org
Cc: debian-java at lists.debian.org
Message-id: <44B185EF.7070107 at sun.com>
All:
Please note that
1. The Eclipse packaging predates the recent changes
in java-common (>= 0.25) which is part of a broader
Debian Java Policy initiative to harmonize
access to multiple implementations [1].
At some point the Eclipse packaging should simply
start with /usr/bin/java (assuming there is at a least
one implementation available as determined by
adding Depends: java-runtime ).
2. The following fix to the current eclipse packaging has been
tested and works (if *no other implementations are
installed*):
tmarble at techno 13% diff -Naur eclipse-3.1.2{-pristine,}/debian/extra/java_home
--- eclipse-3.1.2-pristine/debian/extra/java_home 2006-07-07 19:46:33.000000000 -0500
+++ eclipse-3.1.2/debian/extra/java_home 2006-07-09 16:23:16.000000000 -0500
@@ -4,6 +4,7 @@
/usr/lib/jvm/java-gcj
/usr/lib/kaffe/pthreads
+/usr/lib/jvm/java-1.5.0-sun
/usr/lib/j2se/1.5
/usr/lib/j2se/1.4
/usr/lib/j2sdk1.5-ibm
tmarble at techno 14%
3. Note if one of the two implementations is installed on
the system which precede Sun Java (in java_home above)
then Eclipse will start with the first one it finds.
In that case the work around is to add the following
to ~/.eclipse/eclipserc
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
4. Even in the case listed in #3 Sun Java can still be used
to edit and run Java programs by doing the following:
a. open the Window | Preferences dialog
b. Expand the tree > Java > Editor > Installed JREs
c. click Add...
select the /usr/lib/jvm/java-1.5.0-sun directory
Allow my to respectfully propose the patch in #2 be applied
to the current Eclipse packaging to close this bug.
Then, separately, as Debian Java Policy evolves the Eclipse
packaging should be updated to take those conventions
into account.
Regards,
--Tom
[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=365408
http://wiki.debian.org/Java/Draft
P.S. Please note, also, that I have just updated the documentation
for installing the Sun JRE on Debian:
https://jdk-distros.dev.java.net/debian.html
as well as installing the Sun JDK on Debian:
https://jdk-distros.dev.java.net/debian-dev.html
----- End forwarded message -----
--
Jeroen van Wolffelaar
Jeroen at wolffelaar.nl (also for Jabber & MSN; ICQ: 33944357)
http://Jeroen.A-Eskwadraat.nl
More information about the pkg-java-maintainers
mailing list