problem with javac
I download some source code from Internet for study input method.
If I compile it as a project by jcreator no problem.
If I try to compile these java sources by javac first source (Props.java) is compile.
The second (ServiceManager.java)in not compile because and javac compiler prints the error: cannot find symbol Props.
But this class is present in the same directory.
Now if I compile them sources togher by the instruction javac Props.java ServiceManager.java there is no problem and the class
files are products.
The compiler write in the directory 3 files: Props.class, ServiceManager.class, ServiceManager$1.class
Now what is the difference ?
Why I cannot compile these source separately ?
How can I compile them sepatately ?
thanks in advance
You have to help javac (your compiler) a bit and tell it where it can find source files when it needs them: "javac -sourcepath <path where your sources are> SourceFile.java".
Originally Posted by dangr
Set Path variable on your OS, then issue this command at the command prompt: