Rachel--

CLASSPATH is only set by the launching process *if* no CLASSPATH is set in
the environment. Fortunately, however, the runtime library (rt.jar) and any
extensions (in jre/lib/ext) are managed by a separate ClassLoader, so those
don't need to be on the CLASSPATH--only your "user classes".

(Look at lines 136-138 in "launcher/java.c"; the file comes as part of the
'src.jar' source-code file that comes as part of JDK 1.2:

    /* Set default CLASSPATH */
    if ((s = getenv("CLASSPATH")) == 0) {
        s = ".";
    }

)

Ted Neward
Patterns/C++/Java/CORBA/EJB/COM-DCOM spoken here
http://www.javageeks.com/~tneward
 "I don't even speak for myself; my wife won't let me." --Me

-----Original Message-----
From: Rachel Greenham <[EMAIL PROTECTED]>
To: Surjan Singh <[EMAIL PROTECTED]>
Cc: Tom Whitcomb <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Friday, September 17, 1999 9:58 AM
Subject: Re: Reinstall 1.1.7


>Surjan Singh wrote:
>>
>> I always thought that you _don't_ need the classpath.  If you have your
>> PATH variable correctly (for the release you want to use, e.g.
>> /usr/local/jdk1.2/bin) then you don't need to worry about anything else.
>>
>> The only reason you would want your CLASSPATH set, is if you have other
>> Java libraries you want your compiler/java/appletviewer to see.
>>
>> If you want to remove a release of the JDK just remove the folder and
>> its contents.
>
>It's correct that you don't need to set the classpath for JDK1.2. It
>works in a much more sane and sensible way than it did before. If you
>have a CLASSPATH set when you invoke the JVM, it is *added* to the
>default one needed to make Java work. IIRC in JDK1.1 this wasn't the
>case: If you had your own libraries to add, you had to define the whole
>classpath.
>
>--
>Rachel
>
>
>----------------------------------------------------------------------
>To UNSUBSCRIBE, email to [EMAIL PROTECTED]
>with a subject of "unsubscribe". Trouble? Contact
[EMAIL PROTECTED]


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to