Re: How to compile a java program w/ another java programs which are w/o a main method
- From: Andrew Thompson <seemysites@xxxxxxxxxxx>
- Date: Mon, 31 Oct 2005 17:33:20 GMT
cjeffwang@xxxxxxxxx wrote:
I have been reviewing my "Java Tutorial" lately. For the CounterDemo.java in IO\example-1dot1, javac CounterDemo.java showed an error message that can not find the CountWriter/CountReader classes. I have compiled these two java files at the same driectory.
That sounds odd. Are you saying that CountWriter.class and CountReader.class are both in the same directory as CounterDemo.java?
How do I compile counterDemo.java?
It should compile OK if the class files for CountWriter/Reader are present, as I was asking above, but your compilation errors below (now snipped) are suggesting they are *not* found.
Did you put any package statements in the other classes? (Did you change them at all?)
Try this.
G:\J...\example-1dot1>javac -classpath . CounterDemo.java .
- Follow-Ups:
- References:
- Prev by Date: Re: Error Reading Audio Bitrates
- Next by Date: Re: How to compile a java program w/ another java programs which are w/o a main method
- Previous by thread: How to compile a java program w/ another java programs which are w/o a main method
- Next by thread: Re: How to compile a java program w/ another java programs which are w/o a main method
- Index(es):
Relevant Pages
|