• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem trying to import java.math

 
Johnny Farrell
Greenhorn
Posts: 4
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to import java.math to a jsp page (using import = "java.math.*;" in the page directive) and i'm getting the following errors:

org.apache.jasper.JasperException: Unable to compile class for JSP
J:\mm2kit0809\tomcat\jakarta-tomcat-4.0.3\work\localhost\_\test2002$jsp.java:4: Class or interface declaration expected.
import javax.servlet.*;
^

J:\mm2kit0809\tomcat\jakarta-tomcat-4.0.3\work\localhost\_\test002$jsp.java:10: Superclass org.apache.jsp.HttpJspBase of class org.apache.jsp.test2002$jsp not found.
public class test2002$jsp extends HttpJspBase {
^
I'm sorry but i don't know much about what software i'm using, my lecturer just gave us a tomcat package that had tomcat, mysql, jdk 1.3 and a few other things on it. We just used it to do basic tasks we never really delved deep into how it works or anything like that, so i realise that i am probably after leaving out a lot of vital information that you need in order to help me. But if anyone could help or if you need more information from me let me know and i'll try and find out.

Thanks,
John
 
Johnny Farrell
Greenhorn
Posts: 4
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, i think i figured a way around it.

Thanks anyway guys.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!