Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

Class Path

 
Mohammad Naeem
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,
Iam Facing problem i dont know how to set class path? and why we need class path.
plz solve my problem
keep the peace
cheers
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Report post to moderator
Mohammad,
I'm moving this question to the Java in General (Beginner) forum as the SCJP exam does not feature classpath-related problems.
Please check out Java.sun.com tooldocs: Setting the class path for detailed information about the classapth.
 
le taylom
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
take a look here:
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/classpath.html
T
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am Facing problem i dont know how to set class path? and why we need class path.

Depending on your operating system, in Win9x you set the classpath in the autoexec.bat file. In WinNT, Win2K you set it in "environment variables". In either case, you set it wherever you set your PATH.

You need a classpath to tell the JVM where to find your classes that you want it to execute.
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Report post to moderator
closing. See duplicate here
 
    Bookmark Topic Watch Topic
  • New Topic