Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 29th, 2004, 09:51 PM
Registered User
 
Join Date: Dec 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default package

  Hi,
  I created my own aplication(myApp) under webapps,I put all my own classes under /myApp/WEB-INF/classes.It works fine
  I want to put my classes in order.So I created two folders /myApp/WEB-INF/classes/myPackageA and /myApp/WEB-INF/classes/myPackageB
  How can one class(A.java) under /myApp/WEB-INF/classes/myPackageA use other class (First.java) under /myApp/WEB-INF/classes
  or (B.java) /myApp/WEB-INF/classes/myPackageB? I put "package myPackageA;" in the first line of A.java and
"package myPackageB;" in the first line of B.java.It doesn't work.
How these these classes(First.java,A.java, B.java) can use each other?
Thanks Dennis


Reply With Quote
  #2 (permalink)  
Old May 18th, 2004, 10:26 AM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I believe you could just import them.

Quote:
quote:Originally posted by Dennis
  Hi,
I created my own aplication(myApp) under webapps,I put all my own classes under /myApp/WEB-INF/classes.It works fine
I want to put my classes in order.So I created two folders /myApp/WEB-INF/classes/myPackageA and /myApp/WEB-INF/classes/myPackageB
How can one class(A.java) under /myApp/WEB-INF/classes/myPackageA use other class (First.java) under /myApp/WEB-INF/classes
or (B.java) /myApp/WEB-INF/classes/myPackageB? I put "package myPackageA;" in the first line of A.java and
"package myPackageB;" in the first line of B.java.It doesn't work.
How these these classes(First.java,A.java, B.java) can use each other?
Thanks Dennis


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HowtoRun package from .asp from Package Store? Tom de Koning BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 0 June 21st, 2006 08:08 AM
don't run my package when i schedule package Isra2005 SQL Server DTS 1 May 17th, 2005 01:34 AM
Package huskie Access 11 August 26th, 2003 11:34 AM
package issues drew JSP Basics 0 June 4th, 2003 06:01 AM



All times are GMT -4. The time now is 11:13 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.