On Wed, 4 Jul 2007 21:28:03 +0300, "Mr. X."
<no_spam_please@nospam_please.com> wrote, quoted or indirectly quoted
someone who said :
>What is the classpath value, that I should add by default
>(What jar ? I have jdk1.5.0_06 & jre1.5.0_06)
see http://mindprod.com/jgloss/classpath.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Mr. X. - 04 Jul 2007 20:36 GMT
I see that at the site you gaved me,
there is a claim that I should be an expert in order declaring Classpath
correctly : (
The problem I have an error, after running the StartService of JINI
(I think that the problem related to the classpath of pure java and not
JINI).
after doing :
java -classpath %CLASSPATH%;C:\Program Files\jini1_1\lib\jini-examples.jar
com.sun.jini.example.launcher.StartService
(copied from book : addvanced Java platform).
(The Jini is version 1.1: http://java.sun.com/products/archive/jini/1.1/
I have also examined the JINI version 1.2, but for simplicaty, I use jini
1.1,
because I have got samples for Jini 1.1).
I got the message :
Exception in thread "main" java.lang.NoClassDefFoundError
So I think classpath is not right.
Here is my classpath :
.;C:\Program Files\Java\jre1.5.0_06\lib\rt.jar;C:\Program
Files\jini1_1\jsk-core.jar;C:\Program Files\jini1_1\jini-ext.jar;C:\Program
Files\jini1_1\sun-util.jar
What may be the problem ?
Thanks : )
Mr. X. - 04 Jul 2007 21:17 GMT
Found :
If I put the whole class path in " .. "
(Sorry, I don't know how " is called in English)
Everything works.
Thanks, anyway : ) : ) : )