Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I have a very silly question. Let's say I have two classes. One named TextReader.java and the other named LeapYear.java. Let's also say that LeapYear.java creates a new instance of TextReader named keyboard. Both of these files reside in the same folder. There are no defined packages. When I run my code in JBuilder, it runs perfectly, no errors. I can compile TextReader from the command prompt (with javac) with no problems. When I try to compile LeapYear from the command prompt with javac, I get the following error: C:\test>javac LeapYear.java If both of these files are located in the same folder, why can't javac find TextReader? This seems like such a simple thing, I must be missing something obvious.
Replies:
|
Sponsored Links
|