On Tue, Feb 01, 2000 at 10:55:00PM +0000, Ekkehard Kraemer wrote:
> Hello Clyde,
> 
> cj>So despite what the install README says; assuming an install 
> cj>directory of /usr/local/jdk1.2.2, the env variables need to be set to:
> cj>
> cj>PATH=$PATH:/usr/local/jdk1.2.2/bin:
> cj>CLASSPATH=/usr/local/jdk1.2.2/jre/:.
> cj>JAVA_HOME=/usr/local/jdk1.2.2
> 
> Sorry, this is not correct. At least with JDK 1.2.2 RC4 you do NOT need to
> specify any of these variables. The PATH is convenient, of course, but you can
> also run the java binaries without having the "bin" directory in the PATH (by
> giving the complete path on the command line, for example).
> 
> You only need to specify the CLASSPATH if you want to have more than the
> standard JARs in it (and then, it is probably better to specify the pathes on
> the java command line instead since you will probably have different
> classpath's for different applications)

The JDK1.2 class path consists of 3 components - boot classes, extension
classes, and user classes - and the CLASSPATH only addresses the last one.
If you don't have CLASSPATH set, it defaults to ".".  If you do set it,
it won't see the current directory unless, as in this example, "." is
explicitly included.

So... the core classes (rt.jar) are in the boot classpath, which you
normally don't touch but can affect (if you must) with the
-Xbootclasspath option. The standard JARs are in another classpath that
you can't set at all. (Well, you can if you happen to know the property
name, but it isn't documented anywhere.) CLASSPATH (or the -cp or
-classpath option) affects the "user" class path - unlike in JDK1.1,
there is no need for you to point it to the core or extension classes.

Nathan

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

-- 
[EMAIL PROTECTED]  Public Access User -- Not affiliated with Teleport
Public Access UNIX and Internet at (503) 220-1016 (2400-28800, N81)


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

Reply via email to