Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2241 - JDKs don't install src.zip to the place mandated by the file layout specified by Sun
Summary: JDKs don't install src.zip to the place mandated by the file layout specified...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal minor (vote)
Assignee: Java team
URL: http://java.sun.com/j2se/1.5.0/docs/t...
Whiteboard:
Keywords:
: 94141 98433 (view as bug list)
Depends on:
Blocks: 172854
  Show dependency tree
 
Reported: 2002-04-29 13:23 UTC by Matt Boehlig
Modified: 2007-05-26 10:50 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Boehlig 2002-04-29 13:23:46 UTC
src.zip in sun-jdk1.4.0 (src.jar in jdk 1.3 i think) gets installed into
/opt/sun-jdk-1.4.0/share instead of /opt/sun-jdk-1.4.0/.  This breaks some
programs because the location of that file has changed from the norm.  I've only
used Netbeans for now so I don't know how many more programs are broken from this.  

The easy work around is of course mount src.zip in Netbeans.  But this is hard
to figure out because Netbeans gives you a criptic message (e.g. when opening a
form).  Normally, src.zip is mounted automatically in Netbeans the first time
you start it up.  Can the Netbeans ebuild be changed to point it to this new
location?  I don't think so because I the  Netbeans filesystem settings are
stored in the user's home directory and generated on demand for each user when
the program first starts up.    

Why is the location of src.zip and the demo directory moved to share anyway?
It's only 1 file and 1 directory.  If is should be moved, should it be to
/usr/share, or /opt/share since its a binary package (even though it is open
source-you could download the sources and compile if you wanted to)?  

Maybe it's enough just to alert the user when installing sun-jdk or netbeans
that the location is changed and they need to configure their programs
appropriately.
Comment 1 Matt Boehlig 2002-05-01 14:00:06 UTC
ok its only javax.swing.JComponent that doesnt work all the time.  JPanel does
work.  Ill post this bug on netbeans website.  
Comment 2 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-05-04 10:27:07 UTC
The reason it is moved into the share directory is that it is really a share
file. However, if this cannot be resolved on the NetBeans side, we will just
have to move it back. In general we should probably not touch the directory
layout of /opt/<anyjava>/, no matter how ugly it is.. Keep me appraised.
Comment 3 Matt Boehlig 2002-05-07 02:47:54 UTC
It turns out the problem I was having is a confimed and fixed bug on Netbean's 
website.  You cannot create a new BeanForm with javax.swing.JComponent as the 
superclass because it is an abstract class, even though it is an option in the 
dropdown box.  So this is not a gentoo bug.  

I also checked if src.zip was automounted with Netbeans on Windows.  It's 
not.  In fact, the documentation says it is optional when redistibuting the 
sdk.  

Unless there is a really good reason not to have the share directory and there 
is no other complaints that other programs don't work, this can be closed as 
INVALID.
Comment 4 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-05-28 14:13:41 UTC
Ok. Thanks for excellent feedback.
Comment 5 Robert Kleemann 2004-05-03 22:17:44 UTC
Eclipse seems to look for src.zip in the jdk directory.  I'm not sure how many other programs look for it there as well.  Can't we compromise and create a symbolic link?

/opt/sun-jdk-1.4.2.04/src.zip --> share/src.zip

http://forums.gentoo.org/viewtopic.php?t=157312
Comment 6 Robert Kleemann 2004-05-04 11:21:31 UTC
It looks like I'm not allowed to re-open this bug.
Comment 7 Sven 2007-03-11 04:39:17 UTC
+1 vote for keeping directory layout of sun, even if it's ugly
Comment 8 Petteri Räty (RETIRED) gentoo-dev 2007-03-11 17:29:12 UTC
*** Bug 98433 has been marked as a duplicate of this bug. ***
Comment 9 Petteri Räty (RETIRED) gentoo-dev 2007-03-11 17:29:54 UTC
We should follow what Sun documents on their website:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/linux/jdkfiles.html

Reopening to fix this.
Comment 10 Petteri Räty (RETIRED) gentoo-dev 2007-03-11 17:45:14 UTC
This also affects ibm-jdk-bin so we should check all our jdks for this.
Comment 11 Petteri Räty (RETIRED) gentoo-dev 2007-04-01 20:07:38 UTC
*** Bug 94141 has been marked as a duplicate of this bug. ***
Comment 12 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-04-06 08:45:34 UTC
betelgeuse: so would you prefer moving it, and linking from share/ or just adding link from / to share/ ?
Comment 13 Petteri Räty (RETIRED) gentoo-dev 2007-04-06 10:56:25 UTC
(In reply to comment #12)
> betelgeuse: so would you prefer moving it, and linking from share/ or just
> adding link from / to share/ ?
> 

I would say to link it if it's just a revision bump as the directory in /opt will stay the same. If it's a version bump, just move as the director in /opt will change any way so you need to update the location any way.
Comment 14 Petteri Räty (RETIRED) gentoo-dev 2007-04-06 11:48:01 UTC
(In reply to comment #13)
> 
> I would say to link it if it's just a revision bump as the directory in /opt
> will stay the same. If it's a version bump, just move as the director in /opt
> will change any way so you need to update the location any way.
> 

Yeah and just slap some elogs there so it will not go unnoticed when the old location goes away.
Comment 15 Petteri Räty (RETIRED) gentoo-dev 2007-04-19 19:24:36 UTC
sun-jdk fixed. Now just all the rest of the JDKS.
Comment 16 Marat Radchenko 2007-04-20 06:22:04 UTC
jrockit-jdk-bin layout is not affected by this bug.
Comment 17 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-04-20 11:00:21 UTC
IBM is fixed, I think only blackdown's left
Comment 18 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-26 10:50:59 UTC
Fixed blackdown in -r16, let's get the oldest opened java bug closed, yay.