File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "classpath" Watch "classpath" New topic
Author

classpath

Prabodha Gunawardena
Greenhorn

Joined: Apr 09, 2002
Posts: 6
Hello all,
I have litte doubt on classpath setting. In my assignemnt I have created two folders named client and server, In my README.txt I have documented that the user has to copy those folders to desired locations and run the program from that location. for eaxmple in Windows os if
copy client folder to a directory called clienthome my client will be started as follows
c:\clienthome\client>java -jar client.jar
client.jar is provided in side client folder. By using this way user does not need to set any classpath variables. But he has to run it withing the client folder as shown. (server can also be started in similar fashion)
I want to know whether this approach is acceptable.
I appreciate one if u can respond me quickly. Plesae help me I am about to upload this.
Thanx in Advance
Prabodha Gunawardena
ken chuang
Greenhorn

Joined: Apr 02, 2002
Posts: 1
Did you set system classpath to the %JDK%\lib directory but without your program directory?
The jvm will add current directory to your classpath, so, you only can run the program in
the client directory.
Prabodha Gunawardena
Greenhorn

Joined: Apr 09, 2002
Posts: 6
I added classpath only to
jdk1.3\bin
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: classpath
 
Similar Threads
help with classpath
Just got my result 145/155
Please help me about deploy jboss
JBOSS5.0 EJB3 lookup issue
website with jsp on a zipdisk ... classpath error