Claude,
Try this:
unset CLASSPATH
java -classpath $JAVA_HOME/lib/classes.zip:$JAVA_HOME/lib
org.w3c.rdf.SiRPAC
I don't think that you need $JAVA_HOME/lib/org, just $JAVA_HOME/lib
so that the JVM can then fine org.w3c...
You shouldn't need the '.' in your classpath, unless there are
additional classes that you are trying to execute, after SiRPAC is
running.
In general it's best to avoid setting CLASSPATH. I do it myself but
I've read that you should never have the CLASSPATH environment
variable set.
Make sure that the org/w3c/... dirs and class files are readable by
the user you are using to execute.
Let me know if that works for you,
-Gordon
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...'
>
> 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.
>
> I really don't know what to do, I have tryed really a lot of things
> without success.
> What do you think it could be.
>
> thank you
>
> Claude Le Berre
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
Gordon Chamberlin Software Architect
Visualize, Inc. http://www.visualizetech.com
(602) 861-0999 ext. 14 [EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]