This week's book giveaway is in the Java in General forum.
We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

classpath

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I added classpath only to
jdk1.3\bin
 
Climb the rope! CLIMB THE ROPE! You too tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic