To complete the path here it is,
For Example1.java, it's located in
For Example2.java, it's located in
As you notice, Example1 is in ..\web package and Example2 is in ..\model package.
Compiling Example1.java is no problem...
But compiling Example2.java is what I get an error.. Because it makes use of Example1's instance so I use the import...
I tried what you did in your sample post.. And it did remove the error specifically for package in ..\web but I now get "package does not exist" for other packages like java.util, javax.servlet, etc..