Hi,
I cannot figure out how to load a custom class into a class I've created.
I'm using tomcat, so i have a directory structure like this:
webapps/myapp
webapps/myapp/WEB-INF/classes/mypackage
I've created and compiled a class called Base in the mypackage directory like this:
and I'm trying to use it in a class in the mypackage directory like this:Code:package mypackage; class Base{ public Base(){ } }
When I try to compile MyClass, i keep getting "cannot resolve symbol".Code:package mypackage; import java.util.*; import mypackage.Base; public class MyClass implements java.io.Serializable { public MyClass(){ Base var = new Base(); } }
Please help, what is the trick to using custom classes???
thanks in advance.


Reply With Quote
Bookmarks