Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10855 - java sun j2ee doesn't set environment variables
Summary: java sun j2ee doesn't set environment variables
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-16 21:12 UTC by Andrew Sayman
Modified: 2004-03-17 20:37 UTC (History)
1 user (show)

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


Attachments
adds a file to /etc/env.d/ for the sun-j2ee-1.3.1 (sun-j2ee-1.3.1.ebuild.diff,175 bytes, patch)
2003-05-27 15:19 UTC, brian lee dae yung rowe
Details | Diff
adds a file to /etc/env.d/ for the sun-j2ee-1.3.1 (sun-j2ee-1.3.1.ebuild.diff,175 bytes, text/plain)
2003-05-27 15:21 UTC, brian lee dae yung rowe
Details
New diff for 1.3.1-r1 includes J2EE_HOME (sun-j2ee-1.3.1-r1.ebuild.diff,217 bytes, patch)
2004-02-12 21:17 UTC, michael@smith-li.com
Details | Diff
This patch for the sun-j2ee-1.3.1-r1.ebuild should fix the environment variables *without* sandbox violations ;-) (sun-j2ee-1.3.1-r1.ebuild.diff,247 bytes, patch)
2004-02-13 10:34 UTC, michael@smith-li.com
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Sayman 2002-11-16 21:12:26 UTC
The sun-j2ee ebuild needs to add /opt/sun-j2ee-*/lib/j2ee.jar to the CLASSPATH
and set the variable J2EE_HOME to /opt/sun-j2ee-* to be used correctly in java
devolopment. I believe these variables are separate from whichever vm one is using.
Comment 1 SpanKY gentoo-dev 2002-11-16 22:06:05 UTC

*** This bug has been marked as a duplicate of 10793 ***
Comment 2 Andrew Sayman 2002-11-17 00:52:37 UTC
This isn't a dup. The sun-j2ee ebuild is separate from sun-jdk. It also doesn't
currently do anything to set the environment to anything.
Comment 3 SpanKY gentoo-dev 2002-11-17 03:49:43 UTC
i marked it as a dup because the sun-* have messed up environments currently 
Comment 4 Andrew Sayman 2002-11-17 04:09:44 UTC
The description of the other bug doesn't describe the same problem as this one.
Fixing that one also wouldn't fix the problem with sun-j2ee. An extra variable
actually needs to be added and new data needs to be appended to CLASSPATH that
isn't already there.
Comment 5 stuart2048 2003-05-09 14:06:00 UTC
I too will vouch to have this bug fixed.  I'm very impressed with Gentoo's committment to Java -- tools like java-config and the automatic setting of environment variables in /etc/profile.env is really great.

Adding the following for sun-j2ee would be even better!
    - J2EE_HOME
    - j2ee.jar to CLASSPATH
    - $J2EE_HOME/bin to $PATH

Is there any way I could help here?  Perhaps I will try playing with 
the ebuild scripts and see what happens...

Thanks!
--Stuart
Comment 6 brian lee dae yung rowe 2003-05-27 15:19:56 UTC
Created attachment 12469 [details, diff]
adds a file to /etc/env.d/ for the sun-j2ee-1.3.1

I looked into modifying java-config, and this seems to be the most compatible
way to add the J2EE classpath and path to the environment.  J2EE_HOME can also
be added if necessary.

Regards,
Brian
Comment 7 brian lee dae yung rowe 2003-05-27 15:21:13 UTC
Created attachment 12470 [details]
adds a file to /etc/env.d/ for the sun-j2ee-1.3.1

I looked into modifying java-config, and this seems to be the most compatible
way to add the J2EE classpath and path to the environment.  J2EE_HOME can also
be added if necessary.

Regards,
Brian
Comment 8 michael@smith-li.com 2004-02-12 21:17:46 UTC
Created attachment 25515 [details, diff]
New diff for 1.3.1-r1 includes J2EE_HOME
Comment 9 michael@smith-li.com 2004-02-12 21:19:21 UTC
I made another patch, as you can see, for r1, but it gives sandbox violations. Perhaps java-config is the way to go after all. Anyway, this bug has been on the books for too long (last edited *last may???*) ;-)
Comment 10 michael@smith-li.com 2004-02-13 10:34:35 UTC
Created attachment 25541 [details, diff]
This patch for the sun-j2ee-1.3.1-r1.ebuild should fix the environment variables *without* sandbox violations ;-)

My apologies, I should have tested the previous patch. This one executes
without sandbox violations, hope it helps!
Comment 11 Chris Aniszczyk (RETIRED) gentoo-dev 2004-03-17 20:37:27 UTC
Thanks, in portage now guys ;)