vtr, u have given import jchart.*. This u might have done becoz of the jchart.jar u hv in ur lib folder. But it is not necessary that the name of the jar file be related to the package structure of ur class files. u can check out the package structure if u hv the java source files or else u can use the jar facility or if u are on windows open the jar file using winzip. The dir structure mirrors the package structure of a class. Now when u hv found the package str of ur jarfile, then u need to import them..usually it is something like import com.jchart.* (not always though).
Ideally i suggest u get a good book on java basics.. Bruce eckel seems good but there is no dirth of java fundamentals books.. hope that helps, -Anoop -----Original Message----- From: vtr [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 11:01 AM To: Anoop Kumar V Subject: Re: where to keep class files - newbie I have a jchart.jar in the /web-inf/lib/ which has jspchart.class,.... etc I get org.apache.jasper.JasperException: Unable to compile /opt/tomcat/work/DEFAULT/vtr/test/jch_1.java:6: Package jchart not found in import. import jchart.*; ^ 1 error at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Exception.(Compiled Code) at javax.servlet.ServletException.(ServletException.java) at org.apache.jasper.JasperException.(JasperException.java:73) at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898) at org.apache.tomcat.facade.JasperLiaison.processJspFile(Compiled Code) at org.apache.tomcat.facade.JspInterceptor.requestMap(Compiled Code) at org.apache.tomcat.core.ContextManager.processRequest(Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(Compiled Code) at org.apache.tomcat.core.ContextManager.service(Compiled Code) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Compile d Code) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Compiled Code) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Compiled Code) at java.lang.Thread.run(Thread.java:485) regards vtr ----- Original Message ----- From: Anoop Kumar <mailto:[EMAIL PROTECTED]> V To: 'vtr' <mailto:[EMAIL PROTECTED]> Sent: Thursday, August 22, 2002 10:20 AM Subject: RE: where to keep class files - newbie Can you give us more info, as to which version of Tomcat and what are the exact messages u get on the Tomcat console or in log files.. is it ClassNotFoundException or ?? and where exactly is ur web-inf and what is the url u are giving to access these classes?? -anoop -----Original Message----- From: vtr [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 22, 2002 10:09 AM To: [EMAIL PROTECTED] Subject: where to keep class files - newbie Hi I have Tomcat running over apache on a unix machine. When I have some class file kept in the WEB-INF/classes/ folder the server is unable to detect it whereas the tomcat mannuals say that if you have class files keep in classes and if you have jar file keep in lib. Please help me.... regards vtr =========================================================================== 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 _____ Can you give us more info, as to which version of Tomcat and what are the exact messages u get on the Tomcat console or in log files.. is it ClassNotFoundException or ?? and where exactly is ur web-inf and what is the url u are giving to access these classes?? -anoop -----Original Message----- From: vtr [ mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ] Sent: Thursday, August 22, 2002 10:09 AM To: [EMAIL PROTECTED] Subject: where to keep class files - newbie Hi I have Tomcat running over apache on a unix machine. When I have some class file kept in the WEB-INF/classes/ folder the server is unable to detect it whereas the tomcat mannuals say that if you have class files keep in classes and if you have jar file keep in lib. Please help me.... regards vtr =========================================================================== 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://archives.java.sun.com/jsp-interest.html> http://java.sun.com/products/jsp/faq.html <http://java.sun.com/products/jsp/faq.html> http://www.esperanto.org.nz/jsp/jspfaq.jsp <http://www.esperanto.org.nz/jsp/jspfaq.jsp> http://www.jguru.com/faq/index.jsp <http://www.jguru.com/faq/index.jsp> http://www.jspinsider.com <http://www.jspinsider.com> =========================================================================== 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
