Re: Referring to class in another directory?
- From: "Rhino" <no.offline.contact.please@xxxxxxxxxx>
- Date: Wed, 3 May 2006 16:58:49 -0400
<zburnham@xxxxxxxxx> wrote in message
news:1146668052.827337.123580@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have an applet in my Apache tree that needs to call an applet that'sI'm rusty with servlets and Tomcat but don't you need to have web.xml
in the Tomcat tree. The directory that the target applet is in is in
my CLASSPATH, in a sub directory /my/path/.
I've tried "import my.path.*", tried referring to the class by
my.path.TargetClass, nothing seems to work. The compiler throws an
error saying "Package my.path does not exist /
my.path.TargetClass.method(arg);
I'm not understanding this one. If the top directory is in my
CLASSPATH shouldn't it not matter where the applet is located in the
file system?
Any help is appreciated.
entries for each of your servlets in order to reference then correctly? If
memory serves, you don't need web.xml entries for utility classes that
aren't servlets themselves though so maybe that is the situation you are
facing....
Since this is more of a Tomcat issue than a Java one, why don't you try the
HowTo documents for your version of Tomcat; go to http://tomcat.apache.org/
and choose the Documentation link for your version of Tomcat. If you can't
find what you want in the howtos, you can subscribe to the Tomcat mailing
list at http://tomcat.apache.org/lists.html. You'll want the tomcat-users
list, not the tomcat-dev one. The tomcat-users list is quite active with
many posts each day; many of the questions are answered by the Tomcat
developers themselves.
--
Rhino
.
- References:
- Referring to class in another directory?
- From: zburnham
- Referring to class in another directory?
- Prev by Date: Re: Java collections
- Next by Date: Re: Java collections
- Previous by thread: Re: Referring to class in another directory?
- Next by thread: Re: How do I port "Run..." and "Debug..." settings to another Eclipse installation ?
- Index(es):
Relevant Pages
|