Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41394 - No formal way to add j2ee to classpath
Summary: No formal way to add j2ee to classpath
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-12 10:00 UTC by Matthew Gregory Sr.
Modified: 2005-02-06 15:46 UTC (History)
0 users

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


Attachments
the proposed env.d j2ee settings (21sun-j2ee-1.3.1,290 bytes, text/plain)
2004-02-12 11:23 UTC, Matthew Gregory Sr.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Gregory Sr. 2004-02-12 10:00:28 UTC
I've been unable to find a way to add sun-j2ee to the classpath using java-config.  I don't know if this was an intentional design decision or if it was an oversight but I would think that the package sun-j2ee should be an available package for adding j2ee.jar to the classpth.

After looking at the implementation for java-config I think it may be easier to modify the ebuild for sun-j2ee rather than modify java-config.  I'll attatch a patch for the ebuild to this bug report.
Comment 1 Matthew Gregory Sr. 2004-02-12 11:20:16 UTC
Ok, I've tracked down what I think needs to be done to fix all of this.  Currently, there is no setting for the j2ee stuff in the env.d folder, and java_config will not really work with adding j2ee.jar to the classpath because it's not installed in /usr/share/.

I think the best option here is to add set_j2ee_env to java.eclass and add an env.d file for j2ee.  I've created the file, but the ebuild for sun-j2ee and java.eclass both need to be modified.

I'm just now getting a grasp of how to go about messing with this stuff and don't really feel comfortable messing in these files yet, but if it will help, I'll add some patches to implement these changes to this bug #.
Comment 2 Matthew Gregory Sr. 2004-02-12 11:23:55 UTC
Created attachment 25490 [details]
the proposed env.d j2ee settings

This is an example of what the env.d file should look like.  I'll post the
patch to the sun-j2ee.ebuild which should go about creating it in a few mins.
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2004-02-13 08:18:56 UTC
It is incorrect to add to the system wide classpath like that.
Comment 4 Matthew Gregory Sr. 2004-02-16 08:36:32 UTC
Comment on attachment 25490 [details]
the proposed env.d j2ee settings

># Copyright 1999-2004 Gentoo Technologies, Inc.
># Distributed under the terms of the GNU General Public License v2
># $Header: $
>
>VERSION="SUN J2EE 1.3.1"
>J2EE_HOME="/opt/sun-j2ee-1.3.1"
>ADDPATH="${J2EE_HOME}/bin"
>ENV_VARS="J2EE_HOME CLASSPATH ADDPATH"

#just took out the classpath entry.
Comment 5 Boyd Stephen Smith Jr. 2004-11-16 19:30:48 UTC
Nothing to add; just wanted to confirm the bug.
I just emerged sun-j2ee and was very surprised to not see it accessible via java-config.
Comment 6 Matthew Gregory Sr. 2005-02-06 15:46:25 UTC
Someone either needs to tell me this is fixed or add my fixes into the portage/java systems because this has been sitting for a long time and afaik this fix will work that I posted.  It works fine on my system anyhow.

I'm a bit disappointed that nobody has used my work here yet...