U can set the classpath in autoexec.bat....On windows system, control panel
-> system -> environment tab

Look for CLASSPATH variable under user variables. If it is not there, enter
CLASSPATH in the "variable" text field and enter the path to the jar file of
ur package, eg: if it is in c:\myJars\myPackage.jar, enter this full path
including the jar file name in the "value" field and click on "set" button.
the value u have to enter in the "value" field is : %CLASSPATH%;
c:\myJars\myPackage.jar
i.e., the reference to previous classpaths (if any set), the path to ur jar
file.

Now u start ur tomcat server and run ur application.

I have never worked with tomcat, but went thru some docs, regarding setting
classpath. Also I am sending a URL for ur reference.

http://www.moreservlets.com/Using-Tomcat-4.html#Set-CLASSPATH

Hope this helps.
Priya.

-----Original Message-----
From: Ramaswamy, Rathnapriya (CORP, GTS, L531741)
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 1:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Importing classes


Why don't you jar the package and add it to the classpath????

-----Original Message-----
From: panos periorellis [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 14, 2002 9:29 PM
To: [EMAIL PROTECTED]
Subject: Importing classes


I have developed some java classes which i want to import in my JSP code..

can somebody tell me how do i do this.

i have a list of classes in a package called travel

but

this <%@ page import="travel.*" %> produces errors. In fact it says that the
package cannot be found?
Anyone with similar problems?
thanks
P

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system."

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com


"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this
communication is strictly Prohibited.
If you have received this message by error, please notify us
immediately, return the original mail to the sender and delete the
message from your system."

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to