public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] CLASSPATH addition in ebuild
@ 2002-08-21 23:46 Jacob Perkins
  2002-08-22  0:49 ` [gentoo-dev] " Paul
  0 siblings, 1 reply; 6+ messages in thread
From: Jacob Perkins @ 2002-08-21 23:46 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 348 bytes --]

I'd like to make an ebuild for the java-mail api. It requires additions
to CLASSPATH. How would I add a file to env.d that would have
'CLASSPATH=${CLASSPATH}:/path/to/java/mail.jar'?
Thanks

-- 
pub  1024D/57DDD9E3 2002-05-24 Jacob (Direct to Home)
<jap1@rig.dyndns.ws>
Key fingerprint = 1E02 A5FD 8162 4322 C674  6E67 05EB 30F1 57DD D9E3

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-dev] Re: CLASSPATH addition in ebuild
  2002-08-21 23:46 [gentoo-dev] CLASSPATH addition in ebuild Jacob Perkins
@ 2002-08-22  0:49 ` Paul
  2002-08-22  2:00   ` Jacob Perkins
  0 siblings, 1 reply; 6+ messages in thread
From: Paul @ 2002-08-22  0:49 UTC (permalink / raw
  To: gentoo-dev

Jacob Perkins <jap1@rig.dyndns.ws>, on Wed Aug 21, 2002 [06:46:39 PM] said:
> I'd like to make an ebuild for the java-mail api. It requires additions
> to CLASSPATH. How would I add a file to env.d that would have
> 'CLASSPATH=${CLASSPATH}:/path/to/java/mail.jar'?
> Thanks
> 

	Hi;

	Maybe you should just put a bit of bash script in
/usr/bin that wraps this java thing, and sets whatever env
variables it needs.?

Paul
set@pobox.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Re: CLASSPATH addition in ebuild
  2002-08-22  0:49 ` [gentoo-dev] " Paul
@ 2002-08-22  2:00   ` Jacob Perkins
  2002-08-22  2:22     ` Paul
  2002-08-22  7:38     ` Dominik Westner
  0 siblings, 2 replies; 6+ messages in thread
From: Jacob Perkins @ 2002-08-22  2:00 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]

It's not an app, though, it's just a set of extension libraries for
java. Let's say you're using forte for java to code, or any other editor
for that matter, you can't access these libraries unless they're in the
CLASSPATH.

On Wed, 2002-08-21 at 19:49, Paul wrote:
> Jacob Perkins <jap1@rig.dyndns.ws>, on Wed Aug 21, 2002 [06:46:39 PM] said:
> > I'd like to make an ebuild for the java-mail api. It requires additions
> > to CLASSPATH. How would I add a file to env.d that would have
> > 'CLASSPATH=${CLASSPATH}:/path/to/java/mail.jar'?
> > Thanks
> > 
> 
> 	Hi;
> 
> 	Maybe you should just put a bit of bash script in
> /usr/bin that wraps this java thing, and sets whatever env
> variables it needs.?
> 
> Paul
> set@pobox.com
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
-- 
pub  1024D/57DDD9E3 2002-05-24 Jacob (Direct to Home)
<jap1@rig.dyndns.ws>
Key fingerprint = 1E02 A5FD 8162 4322 C674  6E67 05EB 30F1 57DD D9E3

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gentoo-dev] Re: CLASSPATH addition in ebuild
  2002-08-22  2:00   ` Jacob Perkins
@ 2002-08-22  2:22     ` Paul
  2002-08-22  7:38     ` Dominik Westner
  1 sibling, 0 replies; 6+ messages in thread
From: Paul @ 2002-08-22  2:22 UTC (permalink / raw
  To: Jacob Perkins; +Cc: gentoo-dev

Jacob Perkins <jap1@rig.dyndns.ws>, on Wed Aug 21, 2002 [09:00:33 PM] said:
> It's not an app, though, it's just a set of extension libraries for
> java. Let's say you're using forte for java to code, or any other editor
> for that matter, you can't access these libraries unless they're in the
> CLASSPATH.
> 
> On Wed, 2002-08-21 at 19:49, Paul wrote:
> > Jacob Perkins <jap1@rig.dyndns.ws>, on Wed Aug 21, 2002 [06:46:39 PM] said:
> > > I'd like to make an ebuild for the java-mail api. It requires additions
> > > to CLASSPATH. How would I add a file to env.d that would have
> > > 'CLASSPATH=${CLASSPATH}:/path/to/java/mail.jar'?
> > > Thanks
> > > 
> > 
> > 	Hi;
> > 
> > 	Maybe you should just put a bit of bash script in
> > /usr/bin that wraps this java thing, and sets whatever env
> > variables it needs.?
> > 
> > Paul
> > set@pobox.com

	Hi;

	Ah, I didnt read that close enough.
	In that case, just put a file in /etc/env.d, such as
66java-mail

consisting of:

CLASSPATH="/path/to/java/mail.jar"

env-update seems to be smart enough to graft it together with
other classpaths and puts the result in /etc/profile.env, which
is sourced by /etc/profile.
	I dont know if there is any convention on what sort
of number you should choose-- I believe it determines order
of processing.

Paul
set@pobox.com


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Re: CLASSPATH addition in ebuild
  2002-08-22  2:00   ` Jacob Perkins
  2002-08-22  2:22     ` Paul
@ 2002-08-22  7:38     ` Dominik Westner
  2002-08-22 14:57       ` Jacob Perkins
  1 sibling, 1 reply; 6+ messages in thread
From: Dominik Westner @ 2002-08-22  7:38 UTC (permalink / raw
  To: Jacob Perkins; +Cc: gentoo-dev

Hi Jacob,

I think you have to put your classpath in:

/usr/share/<package name>/package.env

e.g. here is an example for ant:

brain root # less /usr/share/ant/package.env
DESCRIPTION=""
CLASSPATH=/usr/share/ant/lib/*.jar:/usr/share/ant/lib/xercesImpl.jar:/ 
usr/share/
ant/lib/xml-apis.jar

then a user is able to configure their system and user classpath to  
their liking whith java-config.

e.g. show what is installed:
java-config --list-available-packages

java-config --set-system-classpath=package1,package2,...
and
java-config --set-user-classpath=package1,package2,...

This is a great concept and worked very well for me.

Hope this helps

Dominik

On Donnerstag, August 22, 2002, at 04:00 AM, Jacob Perkins wrote:

> It's not an app, though, it's just a set of extension libraries for
> java. Let's say you're using forte for java to code, or any other  
> editor
> for that matter, you can't access these libraries unless they're in the
> CLASSPATH.
>
> On Wed, 2002-08-21 at 19:49, Paul wrote:
>> Jacob Perkins <jap1@rig.dyndns.ws>, on Wed Aug 21, 2002 [06:46:39 PM]  
>> said:
>>> I'd like to make an ebuild for the java-mail api. It requires  
>>> additions
>>> to CLASSPATH. How would I add a file to env.d that would have
>>> 'CLASSPATH=${CLASSPATH}:/path/to/java/mail.jar'?
>>> Thanks
>>>
>>
>> 	Hi;
>>
>> 	Maybe you should just put a bit of bash script in
>> /usr/bin that wraps this java thing, and sets whatever env
>> variables it needs.?
>>
>> Paul
>> set@pobox.com
>> _______________________________________________
>> gentoo-dev mailing list
>> gentoo-dev@gentoo.org
>> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
> -- 
> pub  1024D/57DDD9E3 2002-05-24 Jacob (Direct to Home)
> <jap1@rig.dyndns.ws>
> Key fingerprint = 1E02 A5FD 8162 4322 C674  6E67 05EB 30F1 57DD D9E3
> <signature.asc>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-dev] Re: CLASSPATH addition in ebuild
  2002-08-22  7:38     ` Dominik Westner
@ 2002-08-22 14:57       ` Jacob Perkins
  0 siblings, 0 replies; 6+ messages in thread
From: Jacob Perkins @ 2002-08-22 14:57 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 2282 bytes --]

Thanks, I think this is a much better way to do it.

On Thu, 2002-08-22 at 02:38, Dominik Westner wrote:
> Hi Jacob,
> 
> I think you have to put your classpath in:
> 
> /usr/share/<package name>/package.env
> 
> e.g. here is an example for ant:
> 
> brain root # less /usr/share/ant/package.env
> DESCRIPTION=""
> CLASSPATH=/usr/share/ant/lib/*.jar:/usr/share/ant/lib/xercesImpl.jar:/ 
> usr/share/
> ant/lib/xml-apis.jar
> 
> then a user is able to configure their system and user classpath to  
> their liking whith java-config.
> 
> e.g. show what is installed:
> java-config --list-available-packages
> 
> java-config --set-system-classpath=package1,package2,...
> and
> java-config --set-user-classpath=package1,package2,...
> 
> This is a great concept and worked very well for me.
> 
> Hope this helps
> 
> Dominik
> 
> On Donnerstag, August 22, 2002, at 04:00 AM, Jacob Perkins wrote:
> 
> > It's not an app, though, it's just a set of extension libraries for
> > java. Let's say you're using forte for java to code, or any other  
> > editor
> > for that matter, you can't access these libraries unless they're in the
> > CLASSPATH.
> >
> > On Wed, 2002-08-21 at 19:49, Paul wrote:
> >> Jacob Perkins <jap1@rig.dyndns.ws>, on Wed Aug 21, 2002 [06:46:39 PM]  
> >> said:
> >>> I'd like to make an ebuild for the java-mail api. It requires  
> >>> additions
> >>> to CLASSPATH. How would I add a file to env.d that would have
> >>> 'CLASSPATH=${CLASSPATH}:/path/to/java/mail.jar'?
> >>> Thanks
> >>>
> >>
> >> 	Hi;
> >>
> >> 	Maybe you should just put a bit of bash script in
> >> /usr/bin that wraps this java thing, and sets whatever env
> >> variables it needs.?
> >>
> >> Paul
> >> set@pobox.com
> >> _______________________________________________
> >> gentoo-dev mailing list
> >> gentoo-dev@gentoo.org
> >> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
> > -- 
> > pub  1024D/57DDD9E3 2002-05-24 Jacob (Direct to Home)
> > <jap1@rig.dyndns.ws>
> > Key fingerprint = 1E02 A5FD 8162 4322 C674  6E67 05EB 30F1 57DD D9E3
> > <signature.asc>
> 
-- 
pub  1024D/57DDD9E3 2002-05-24 Jacob (Direct to Home)
<jap1@rig.dyndns.ws>
Key fingerprint = 1E02 A5FD 8162 4322 C674  6E67 05EB 30F1 57DD D9E3

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-08-22 14:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-21 23:46 [gentoo-dev] CLASSPATH addition in ebuild Jacob Perkins
2002-08-22  0:49 ` [gentoo-dev] " Paul
2002-08-22  2:00   ` Jacob Perkins
2002-08-22  2:22     ` Paul
2002-08-22  7:38     ` Dominik Westner
2002-08-22 14:57       ` Jacob Perkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox