• 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

Need Help

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends,
I'm i need of ur help in setting the path and classpath.
1)What is Path?what all should be in my path for to run my java program
2)what is classpath?
3)On windows2000 how do i've set it?I've j2sdk1.4.1_01 and my programs are in directory "F:\JavaPractice"
itried to set the classpath what was not successful.bcoz while compiling i got error saying "Class not found","some thing like internal/externa...",These i got on my attempt of trial and error
Plz help me
thanx in adavnce
 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read here
http://www.cadenhead.org/book/21java/jdkhelp6.shtml
about 1/2 way down the page he tells you (with pictures) how to set the classpath on W2000
You could read the entire intro area at http://www.cadenhead.org/book/21java/
and get a real feel for what you need to do and why
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1)What is Path? what all should be in my path for to run my java program
The PATH is an operating system environment variable that specifies the location(s) to use when searching for a specified executable file. So, if you type javac or java from a command line, the operating system will use the location(s) specified in the PATH setting to find the proper programs to run.
To compile a Java program, you'll want the location of javac.exe in your PATH. To run a Java program, you'll want the location of java.exe in your PATH. If you've downloaded and installed the J2SE SDK, then both of these programs are already on your system inside of the bin folder in the J2SE SDK installation.
2)what is classpath?
The CLASSPATH is an environment variable that specifies the location(s) of Java class files to be used by the Java compiler and the Java Runtime Environment.
3)On windows2000 how do i've set it?
Take a look at our wiki page on HowToSetTheClasspath.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic