Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Referring to class in another directory?

Thread view: 
zburnham@gmail.com - 03 May 2006 15:54 GMT
I have an applet in my Apache tree that needs to call an applet that's
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.

Z
zburnham@gmail.com - 03 May 2006 15:58 GMT
Whoops, meant "that needs to call a class that's in the Tomcat tree."
Sorry.
Rhino - 03 May 2006 21:58 GMT
>I have an applet in my Apache tree that needs to call an applet that's
> in the Tomcat tree.  The directory that the target applet is in is in
[quoted text clipped - 10 lines]
>
> Any help is appreciated.

I'm rusty with servlets and Tomcat but don't you need to have web.xml
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.