First page Back Continue Last page Graphics
External References and the CLASSPATH Variable
The preceding example worked because the class MyInt does not have any references to symbols external to its file
However, if you now try:
- 6% javac test.java
- you will get an error saying that MyInt cannot be resolved; the compiler does not know where to look
To use separate compilation, you must tell the compiler where to look for external symbols by setting the CLASSPATH environment variable