• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

my classpath

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, someone told me to put a jar file in "my classpath"? What is my classpath? I know this is a silly question, but I don't know.
 
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bob,
I was the one that told you to put your jar inside your CLASSPATH. A CLASSPATH is nothing more than an environment variable. Please tell us what platform you're using and we can go from there.
If it's NT, you can go into Start...Settings...Control Panel...System...User Profile and create a CLASSPATH environment variable.
If it's W9X then you'll need to do something like
Set CLASSPATH=<your jar files>;<more jar files>;
If it's UNIX, then it depends on what shell you're using.
-Peter
 
Bob Moranski
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Peter, I am on Win9X platform. What should I do?
 
Peter Tran
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Bob,
In your autoexec.bat file, you should set a CLASSPATH environment variable and list out all your jar files.
E.g.
set CLASSPATH=C:\foo\lib\foo.jar;c:\bar\lib\bar.jar;
-Peter
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic