TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:11197] Max length of env vars?



On 15 Dec, Bob Tanner wrote:
> Quoting Gabe Turner (dopp@acm.cs.umn.edu):
>> Yes, I belive it's something like 10 or 12 lines (roughly).  I believe the
>> actualy restriction is on the number of characters, but I think it works out
>> to about 12, 80 character lines.  So 12x80 = 960 so maybe it's a 1000
>> character restriction?  Can anyone confirm this?
> 
> So, how do you get around this limitation.
> 
> When you have 20+ classes in a fairly deep directory, the char counts adds up
> quickly.
> 
> /usr/lib/classes/foo1.jar
> /usr/lib/classes/foo2.jar
> /usr/lib/classes/foo3.jar
> /usr/lib/classes/foo4.jar
> /usr/lib/classes/foo5.jar
> /usr/lib/classes/foo6.jar
> /usr/lib/classes/foo7.jar

Rebuild all of the jars as one jar.  In fact I believe you can put jars
within jars in java2.  I remember reading about it in the early specs,
but don't remember if it made it to the final release.


-- 
Jon Schewe 
http://eggplant.mtu.net/~jpschewe
schewe@tcfreenet.org