Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jody Mills   on Nov 17 In Java Category.

  
Question Answered By: Earl Stone   on Nov 17

The current directory  should be in p1's parent directory. For
example (assuming Windows), if the path is c:\xxx\p1, then you should
be in xxx. Then to compile, do:

javac -classpath . p1\test.java

To run, do:

java -classpath . p1.test

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on How do I run this program Or get search suggestion and latest updates.


Tagged: