This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Need Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need Help" Watch "Need Help" New topic
Author

Need Help

Prashanth Bhanu
Ranch Hand

Joined: Sep 25, 2003
Posts: 110
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
Elouise Kivineva
Ranch Hand

Joined: Feb 07, 2002
Posts: 154
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
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
Don't get me started about those stupid light bulbs.
 
subject: Need Help
 
Similar Threads
set classpath..
Tomcat is not running.. pls help
public class access
Setting the license File
Ant unable to find javac compiler (in Eclipse)