On Thu, 06 May 1999 08:25:47 -0700, Gordon Chamberlin wrote:
>Claude,
>
>Try this:
>unset CLASSPATH
>java -classpath $JAVA_HOME/lib/classes.zip:$JAVA_HOME/lib
>org.w3c.rdf.SiRPAC
Note: When using -classpath the 1.1.x systems will not add anything
to them. -classpath *replaces* the classpath.
>Claude wrote:
>>
>> hello,
>>
>> I have a problem by making some programs runs on Java for Linux (I have
>> the jdk1.1.7 and glibc, with SuSE Linux 6.0 (KDE)).
>> I have seen in the mail archive that there are very often some
>> informations about the way the CLASSPATH must function, it has been very
>> usefull for me, but in spite of these explanations, I haven't been able
>> to make run my programs. I get 'can't find class org.w3c.rdf.SiRPAC' or
>> 'unable to initialize threads'.
>>
>> I want to run the SiRPAC class that is in the directory
>> $JAVA_HOME/lib/org/w3c/rdf/.
>> when I type the java execution commant, I'm in $JAVA_HOME/lib.
>> I have tryed the following things and traced the execution of the
>> .java_wrapper script:
>>
>> 1) java org.w3c.rdf.SiRPAC
>> -> the classes.zip is found but the result is 'can't find class
>> org.w3c...'
>> that's ok, the path to this class is not given
>>
>> 2) java -classpath $CLASSPATH org.w3c.rdf.SiRPAC with a CLASSPATH
>> containing .:$JAVA_HOME/lib/classes.zip:/$JAVA_HOME/lib/org
>> -> the classes.zip is found but the result is 'can't find class
>> org.w3c...'
Well, the problem is that you have the CLASSPATH wrong here. If org is
in the class name "org.w3c...." then it should not be directly in
the classpath.
Since you have actually placed something into the JDK directories
you may wish to put the class tree in the $JAVA_HOME/classes directory
as this is automatically part of the CLASSPATH (unless you use -classpath
option)
>> 3) i have tryed also to change the .java_wrapper and put the directory
>> $JAVA_HOME/lib/org in the CLASSPATH of this script, but it still don't
>> work.
Again, you are pointing to the wrong place. You would need $JAVA_HOME/lib
since the "org" part is part of the class names themselves. Again,
if you are putting things into the JDK directory tree, do so in the
$JAVA_HOME/classes directory and the wrapper will automatically find
it. (Too bad in JDK 1.1.x the was no place to drop jar files)
Michael Sinz -- Director of Research & Development, NextBus Inc.
mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com
My place on the web ---> http://www.users.fast.net/~michael_sinz
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]