HP3000-L Archives

September 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Lars Appel <[log in to unmask]>
Reply To:
Lars Appel <[log in to unmask]>
Date:
Sat, 2 Sep 2000 09:56:01 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
> I'm wondering if there is a "sourcepath" or "classpath" that
> I should be using?   But if so what?

Similar to HPPATH used by the CI to locate programs or command files,
and PATH used by the Shell to locate programs and scripts, the Java
platform uses a CLASSPATH variable to locate classes to be loaded. In
the CI you set it via SETVAR, in the Shell you use export CLASSPATH=
and watch out for all uppercase letters in the Posix env var name.

If you don't define CLASSPATH, the JDK looks in a couple of default
places, something like current directory and some places in the Java
installation directory.

You can amend/prepend this by explicitly setting CLASSPATH before you
invoke the javac compiler or java runtime. Below is an example that
causes the Java VM to search in the current directory, then /JAVA/DEMO,
then inside some jsdk.jar file (which does not have to be unpacked),
and finally the "default" places in the Java installation directory:

:setvar classpath, ".:/JAVA/DEMO:/YOURACCT/YOURGRP/lib/jsdk.jar"

Hope this sheds a little light. I'm planning to add a little "How To"
page that shows how to compile and run a simple Java program, applet,
and servlet on Windows as well as MPE/iX. Expect it to show up on the
http://www.editcorp.com/Personal/Lars_Appel/index.html page later today.

Lars.

ATOM RSS1 RSS2