Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Classpath

  Asked By: Qadriyah    Date: Mar 17    Category: Java    Views: 667
  

If I want to compile .java file from C:\Java
directory, I have to set classpath to "SET
CLASSPATH=C:\java; Right?? but that doesn't work after
assigning up PATH variable to C:\jdk1.3.1_03\bin on my
system.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Garrett Brooks     Answered On: Mar 17

If I were you I would use the command line switches to affect the class path.

Thus, if you want to compile  .java files in the C:\Java directory, first switch
to that directory and then type:

java -classpath . *.java

 
Didn't find what you were looking for? Find more on Classpath Or get search suggestion and latest updates.




Tagged: