> I am using the blackdown jdk 117 v3.  I have downloaded Swing 1.0.3 from
> SUN and ArgoUML.  These come as .jar files which contain the paths
> com/sun/java/... and the actual files below that.  All the installation
> instructions tell me to simply put these in my class path.  I have tried
> setting a CLASSPATH variable, using the -classpath argument to java and
> putting these in the same directory as classes.zip (and everywhere else
> in my jdk installation), java refuses to find these new additions.  I've
> also tried setting JAVA_HOME.  The FAQ seems to say very little about
> where it searches for classes.  Please help!

A .jar acts as a class directory, so you must include the file itself in the
classpath.
Let's say your classpath variable is specified in the file /etc/profile (which
is a script that is run
everytime someone logs on, which you probably allready knew), this line will
make the jdk "see"
the swing libraries:

export CLASSPATH="$CLASSPATH:/usr/local/jre/lib/swing.jar"

You will, of course, have to replace /usr/loca/jre/lib with the location where
you have installed your swing.jar
file (or swingall.jar; depends on which one you chose; most people only need the
swing.jar, which is smaller).

setting the classpath directly will also work;

java -classpath $CLASSPATH:/usr/local/jre/lib/swing.jar TheClassYouWantToRun

By the way; you should use the Swing 1.1.1 release, it became non beta about a
month ago.
--

jørgen h. seland
[EMAIL PROTECTED]



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

Reply via email to