Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

ClassPath value

Thread view: 
Mr. X. - 04 Jul 2007 19:28 GMT
What is the classpath value, that I should add by default
(What jar ? I have jdk1.5.0_06 & jre1.5.0_06)

thanks : )
Roedy Green - 04 Jul 2007 19:35 GMT
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 : )  : )  : )


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.