Home Tutorialhelp Comment can't compile class

 
 

Comment

Greg
can't compile class,
February 5, 2009 at 10:59 PM

When I attempt to compile your class, it generates 16 errors.
The primary cause is the 2 imports:
Import javax.servlet.jsp.*;
Import javax.servlet.jsp.tagtext.*;

I downloaded the javax classes from Sun, but I don't know how to use them.

Also, the .jsp and .jsp.tagtext are not part of the javax servlet classes.

Could you explain further?

Thanks.
View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
WebSevices Questions

Unable to compile class for JSP - WebSevices
Unable to compile class for JSP  org.apache.jasper.JasperException: Unable to compile class for JSP When I am trying to access a java file kept under src folder under a package from a jsp page placed under web directory, I am 

Java Beginners

compile
compile  how to compile .class files using eclipse 

Java Beginners

How to compile and run the JSP
How to compile and run the JSP  Hi Kindly tell me how to run and compile JSP small Program using Tomcat as webserver. I created small program HELLO JSP in HTML and compile the program but it is saying Class o r interface 

JSP Servlet Questions

unable to compile class file - JSP-Servlet
unable to compile class file  I wrote database connection in jsp file...*; import java.util.ArrayList; public class ComboboxList extends HttpServlet...("/jsp/Combobox.jsp"); dispatcher.forward(request, response 

Java Interview Questions

why this can't
why this can't  import java.util.*; class Dash{ public static void main(String args[]){ int x0=100; int[] x1=new int[3]; int[][] x2=new int[3][3]; int[][][] x3=new int[3][3][3 

Java Beginners

compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get 

Java Beginners

compile a java class
compile a java class  Hi, Am having a class ExampleOne.java in the location C:\learn\ExampleOne.java I want the class file to be present in C:\. I don't want to add any package details in the code. Is is possible to get 

Java Beginners

compile error
compile error  Hello All for example public class... program with Test.java and try to compile with javac test.java an error like test.java :2 : class A is public ,should be declared in a file named A.java 

JSP Servlet Questions

How to compile & get output for JSP
How to compile & get output for JSP  HI My Roseindia friend has given the answer as RUN the JSP How to run the JSP Program? But what i mean is that i created a small jsp program in HTML and saved as Hello.jsp. And next i opened 

Java Beginners

how to compile programs??????????
how to compile programs??????????  "javac" is not recognised as a file name. why??????????   Have you set your path name and class name correctly? Anyways have a look at the following link: Install Java 

Java Beginners

compile time error
compile time error  my program compile successfully and make the class file also but when i tried to do next command to see the output,it showing error that "could not find or load main class fibbo" fibbo is my class name 

Java Beginners

compile time error
compile time error  my program compile successfully and make the class file also but when i tried to do next command to see the output,it showing error that "could not find or load main class fibbo" fibbo is my class name 

Java Beginners

compile time error
compile time error  my program compile successfully and make the class file also but when i tried to do next command to see the output,it showing error that "could not find or load main class fibbo" fibbo is my class name 

Java Beginners

JAVA Compile Question ?
JAVA Compile Question ?  I'm unable to compile this file and not sure why? Can someone please help? import java.nio.file.*; import... java.io.IOException; public class FileStatistics2 { public static void main(String[] args 

JSP Servlet Questions

plaz help me i try to compile from last 2 day .
plaz help me i try to compile from last 2 day .   org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 34 in the jsp file: /saveUpdate.jsp name cannot be resolved to a variable 31 

JSP Servlet Questions

plaz help me i try to compile from last 2 day .
plaz help me i try to compile from last 2 day .   org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 34 in the jsp file: /saveUpdate.jsp name cannot be resolved to a variable 31 

Java Beginners

Compile error - Java Beginners
Compile error  I get this error when compiling my program: java:167... java.util.HashMap; public class TestLineCounter { public static long totalLines... if the string is a class declaration. Class declarations begin with a modifier public 

JDBC Questions

can't connect to MySQL Server(10060) - JDBC
can't connect to MySQL Server(10060)  Hii Sir, I am working with a jsp project with MySQL as server. Now i want to host my application. I am created a DB in the Hosting MySQL server and now i want to create a table By using 

Java Beginners

can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui... javax.xml.transform.dom.*; import javax.xml.transform.stream.*; public class 

Java Beginners

can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui... javax.xml.transform.dom.*; import javax.xml.transform.stream.*; public class 

Java Beginners

can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui... javax.xml.transform.dom.*; import javax.xml.transform.stream.*; public class 

Java Beginners

can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui... javax.xml.transform.dom.*; import javax.xml.transform.stream.*; public class 

Java Beginners

can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui... javax.xml.transform.dom.*; import javax.xml.transform.stream.*; public class 

Java Beginners

Add color to background but I can't labels or textfields
Add color to background but I can't labels or textfields  Please help... and initialize the JLabel class object and add it to container. Inorder to do that you...; import java.awt.*; import javax.swing.*; class Test{ public static 

JSP Servlet Questions

bad class file - JSP-Servlet
bad class file  (from the JAVA SERVLET PROGRAMMING - O'Reilly) and got a "bad class file...): myservlet.java:9: cannot access HttpServlet bad class file: \HttpServlet.class...bad class file. I'm (desperately) trying to get 

Java Beginners

compile this program and let me know the resolution
compile this program and let me know the resolution  class Maxof2{ public static void main(String args[]){ //taking value as command line...+" is greater than "+i); } } please compile and let me know the resolution   

Development process Questions

i got an error while compile this program manually.
i got an error while compile this program manually.  import javax.servlet.http.*; import org.apache.struts.action.*; public class ActionOne{ public ActionForward execute(ActionMapping mapping 

General

Example to compile a java file with the help of the program
below: For this we are taking a class Compile Hello, Inside the main method we... Example to compile a java file with the help of the program... are describing you the way to compile the java file with the help of the java program 

PHP Questions

How to compile PHP file and provide it to user without code?
How to compile PHP file and provide it to user without code?  I have created a class in PHP, that contains some useful methods. Now I want to give... in asp.net instead of providing code file. How can I compile the PHP file and provide 

Java Beginners

Is it modify Object data? Generally Object data can't modify............but in this program it modifies.......... Why?
Is it modify Object data? Generally Object data can't modify............but in this program it modifies.......... Why?   import java.io.*; public class Conversions { public static void main(String args[]) throws Exception 

Development process Questions

SOLUTION: How to compile Objective C on Windows with GNU Step ?
SOLUTION: How to compile Objective C on Windows with GNU Step ?  <...;<strong>Compile using the below mentioned command line:</strong><... \ -fconstant-string-class=NSConstantString</p> <p>(Note 

JDBC Questions

i cant find any compile time error but there is runtime error.
i cant find any compile time error but there is runtime error.  import java.sql.*; public class JDBCExample{ public static void main(String args... it on your computer. import java.sql.*; public class JDBCExample{ public static 

Development process Questions

jsp
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 7 in the jsp file: /jsp/insertdate.jsp month cannot be resolved 4...jsp  when i compile the dateOfBirth.html i got the following errors 

Development process Questions

jsp
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 7 in the jsp file: /jsp/insertdate.jsp month cannot be resolved 4: 5: <% 6: String...); An error occurred at line: 17 in the jsp file: /jsp/insertdate.jsp Duplicate local 

JSP Servlet Questions

jsp
" "http://www.w3.org/TR/html4/loose.dtd"> **<jsp:useBean id="obj" class="com.ingenious.bean.UserBean"scope="session"/>** <jsp:setProperty...;title>JSP Page</title> </head> <body> 

Java Interview Questions

abstract class
abstract class  abstract class AbstractClass{ } is possible and compile the class or any compile time error occur tell me the answer Blockquote 

Java Beginners

Abstract class
Abstract class  Calendar cal=Calendar.getInstance() We know that Calendar is an abstract class so it can't be instantiated. So how we can say that cal is an instance of Calendar??? Beginner Question I suppose. Thanks in advace 

JSP Servlet Questions

Robot Class - JSP-Servlet
 

JSP Servlet Questions

JSP error: class UserForm not found in class model.UserAction
JSP error: class UserForm not found in class model.UserAction  etting the following error in the program..wat shod i do to remove this?I am using... org.apache.struts.actions.IncludeAction; public class UserAction extends DispatchAction { private 

Java Beginners

Inner class
java.lang.*; import static java.lang.System.*; class Outer...{ i=new Inner(); } class Inner...("Inner"); } } } class 

WebSevices Questions

Compile error - WebSevices
Compile error  Hello, How to read .pdf file using Javascript/php. Any one send the code 

Java Beginners

compile and run java program
compile and run java program  Hello, everyone!!! I just want to ask if you anyone here knows how to compile java file in linux specifically UBUNTU... do I compile and run this file using the terminal of ubuntu... By the way, I am 

JSP Servlet Questions

Why System class not in jsp - JSP-Servlet
Why System class not in jsp  Hi Friends, why system.out.println("") not working in jsp . But out.println is working I want the reason pz . Thanks Prakash 

JSP Servlet Questions

how to call a java class in jsp - JSP-Servlet
how to call a java class in jsp  hi.. friends iam new to roseindia.i... class in a jsp.can anyone please help me with this query... : Example of Extends Attribute of page Directive in JSP 

JSP Servlet Questions

how to call a java class in jsp - JSP-Servlet
how to call a java class in jsp  hi.. friends iam new to roseindia.i... class in a jsp.can anyone please help me with this query... : Example of Extends Attribute of page Directive in JSP 

Java Beginners

Compile time error
Compile time error  Hi, When i compile my simple program in cmd am getting a error like "Javac is not a recognized as an internal or external command, operable program or batch file" How to resolve this problem ????   

JSP Servlet Questions

Class files for Jfreechart - JSP-Servlet
Class files for Jfreechart  Respected Sir/Madam, I am... Charting application in JSP.. I have also compiled around 100 files for it.. Though, I found some of the class files are missing.. So, I request you to send 

JSP Servlet Questions

how to include a java class in jsp - JSP-Servlet
how to include a java class in jsp  hello sir, this is my first question, i want know that how to use a java class function's variables and methods of a java class in jsp.if possible plz tr to explain with a simple example 

JSP Servlet Questions

Static database class - JSP-Servlet
Static database class  I want to create a static database class and i want to use that class in all servlets ? How can i achive 

HTML Questions

Unable to compile Servlet
Unable to compile Servlet  First I installed the tomcat server in C:\apache-tomcat-6.0.14 directory. Then I created a system variable CATALINA_HOME... was created by me. To compile my servlet program I did the following: C:\apache 

JSP Servlet Questions

Convert String to Class - JSP-Servlet
. Reading job name, class name, day & time using xml file only. Problem is while reading class name, retrieve as a string format but Quartz required in "Class" format 

JSP Tutorials

Java class in JSP
Java class in JSP          To use a Java class method in jsp first we need... the jsp page we now need to create an object of the class by using the new operator 

Java Beginners

What is final class?
What is final class?  Hi, What is final class? thanks   Hi, A final class is not be saubclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable 

Java Beginners

compiling .class files
compiling .class files  how do i compile .class files using eclipse 

Java Beginners

servlet not compile - Java Beginners
 

JSP Servlet Questions

jsp webhosting - JSP-Servlet
restart) it gives "Unable to compile class for JSP" in some pages or in all... org.apache.jasper.JasperException: Unable to compile class for JSP...jsp webhosting  we have made one jsp / tomcat website. The site 

Java Beginners

can't read my xml file in java
can't read my xml file in java  i've a xml file like this : <table ID="customer"> <T> <C_CUSTKEY>1</C_CUSTKEY> <C...(); } the codes can't read the xml file bcz i want to append the whole xml in my gui 

General

Class names don't identify a class - Java Tutorials
of compile time. Consider the Simple Test class given below. Test.java public... FirstClass()); } } Compile the Test class as C:\>javac -cp .;directory1...Class names don't identify a class In JDK 1.2 the Sum Microsystems have added 

JSP Tutorials

Session Management in JSP
Session Management in JSP     ... is a stateless protocol, that means that it can't persist the data. Http treats each... and submitted with the Http POST command. In JSP we have been provided a implicit 

JSP Servlet Questions

JSP - JSP-Servlet
. i am using tomcat 5.0. I want to know where i have to place this class file. when i am trying to place this class file(DBcon.java) in WEB-INF classes. It is showing error. Do i need to compile this... pls... give me details...  

JSP Servlet Questions

JSP Hosting - JSP-Servlet
is org.apache.jasper.JasperException: Unable to compile class for JSP...JSP Hosting  Hi, I did a project using jsp, i host that using godaddy.com server, but when i reload or update the jsp i got an error msg. Can 

Java Beginners

Java compile error - Java Beginners
Java compile error  I am having trouble compiling the Java project available on this site at http://www.roseindia.net/chatserver/index.shtml... to compile Java on Mac besides using the Terminal 

Java Beginners

Can a class be declared as protected?
Can a class be declared as protected?  Hi, Can a class be declared as protected? thanks   Hi, A class can't be declared as protected. only methods can be declared as protected. http://www.roseindia.net/java 

JSP-Tutorials

UseBean In JSP
of the <jsp:useBean> tag specifies the bean class which object...;net.roseindia.DateExample" %> <jsp:useBean id="dt" class="...;net.roseindia.bean.NameBean" %> <jsp:useBean id="pageBean" class=" 

Java Beginners

How to compile and run Java program
How to compile and run Java program  How to compile and Java program from command prompt on my windows 7 computer? Thanks   Hi, For compiling and running the Java program from command prompt you should must have JDK 

Servlet Interview Questions

how to compile and run servlet program
how to compile and run servlet program   hello sir/mam i hve installed tomcat5.5 version and also have jdk1.6.0_14 installed but not able to run it or compile i m doing it first tyme pls help me in sorting out this problem. i hve 

XML Questions

xml compile time warning - XML
xml compile time warning  hi all when i compile my code the following message is shown: Note: keysearch.java uses unchecked or unsafe oper Note: Recompile with -Xlint:unchecked for details. wat do these mean???  

JSP Servlet Questions

jsp
jsp  I can't get any answer please guide me..i got an exception which is shown in star above in my yesterday program 

General

Java Abstract Class
. Program can't instantiate an abstract class. Abstract classes contain mixture... Java Abstract Class       An abstract class is a class that is declared by using the abstract keyword 

Ant

Using Ant to execute class file
Using Ant to execute class file       This build.xml file is used to compile and run...;; third one is used to compile the java file from "src" directory 

JSP Servlet Questions

how to convert jsp page to class file - JSP-Servlet
how to convert jsp page to class file  hai. iam doing online banking project by using jsp.i completed all the jsp pages.next can you tell me how to convert these jsp pages to class files with example and where to copy these class 

Java Beginners

about inner class
about inner class  class Outer { class Inner{ public void m1(){ System.out.println("Inner class Method"); } } public void m2(){ Inner i = new Inner...(); } } in this i got compile time error as: cannot find symbol method m2 

JSP Interview Questions

JSP
objects in jsp   Implicit objects in jsp are the objects... (user defined methods) can't access them as they are local to the service method and are created at the conversion time of a jsp into a servlet. But we can pass 

JSP Interview Questions

JSP
objects in jsp   Implicit objects in jsp are the objects... (user defined methods) can't access them as they are local to the service method and are created at the conversion time of a jsp into a servlet. But we can pass 

JSP Servlet Questions

Assigning a value to JSP variable from a bean class. - JSP-Servlet
Assigning a value to JSP variable from a bean class.  Hi, I want to know how we can assign value to a JSP variable from a Java Bean. I am using Struts, JSTL. Which tags should I use to assign the value. e.g Kindly 

JSP Interview Questions

JSP
JSP  what are different implicit objects of jsp   mplicit objects in jsp are the objects that are created by the container automatically... are used for different purposes. Our own methods (user defined methods) can't access 

JSP Servlet Questions

jsp sessions - JSP-Servlet
jsp sessions  hai deepak this is senthil i have a query that is in my... javax.servlet.http.*; import java.util.Map.*; public class counte implements... compile these program it is showing some notes as follows note:counte.java 

JSP Servlet Questions

jsp runtime error - JSP-Servlet
: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated...-jsp\readingWriting_0005fexcel$jsp.java:5: Class...jsp runtime error  sir, when i am running ur prog... from 

Java Beginners

Inner Class - Java Beginners
Inner Class  Hi, I have the following question. class Outer{ class Inner{ } public static void main(String[] args) { Outer.Inner inner = new Outer().new Inner(); } } If I compile the above code 

JSP Servlet Questions

Using a user defined non-packaged servlet class in jsp. - JSP-Servlet
Using a user defined non-packaged servlet class in jsp.  i want know... example. actually i have a class in which i had written the backend process code and want to use those variables in my jsp for further process 

Development process Questions

Jsp
Jsp  how can we compile the jsp file in dos command prompt. when i enter the jspc filename.jsp in cmd i got the error like 'jspc' is not recognized... to my file and compilation for the jsp file 

Java Beginners

Class Path - Java Beginners
Class Path  Hello I was able to set the class path as You have specified in the site... But still am not able to compile the "javac" command...; there u can type the path both in user variables for administrator   Hi 

JDBC Questions

mysql error 1042 can't get hostname for your address
mysql error 1042 can't get hostname for your address  Hi, I am not able to connect to MySQL database. Its giving following error: mysql error 1042 can't get hostname for your address How to solve this error? Thanks   

General

Java Nested Class
Java Nested Class         In Java programming language, when a class is defined within another class then such a class is called a nested class. Nested classes are a feature 

Java Beginners

java class - Java Beginners
java class  hi sir, i have to compile two classes(eg:controller.java and client.java) and i have imported some packages in it using jar files(like Activation.jar and servlet.jar) when ever i am running in command promt 

JSP Servlet Questions

Doubt in using combination of JSP page and Java class. - JSP-Servlet
Doubt in using combination of JSP page and Java class.   I've got... be disabled from clicking. How to go about doing this in a "JSP Page using a Pure Java class"? The Database table looks like this: SeatCode 

Struts Questions

how to compile and run struts application - Struts
how to compile and run struts application  how to compile and run struts program(ex :actionform,actionclass) from command line or in editplus 3 

Java Interview Questions

can we use class in jsp which implements interface
can we use class in jsp which implements interface   can we use class in jsp which implements interface 

Struts Questions

How to validate a form in action class and forward errors to the jsp in struts?
How to validate a form in action class and forward errors to the jsp in struts?  How to validate a form in action class and forward errors to the jsp in struts 

JSP Servlet Questions

jsp
jsp  Hi in my dao class some exception is there then how can i display in jsp page 

Java Beginners

i need to answer this Question but i can't do it probably
i need to answer this Question but i can't do it probably   use the web to locate the lyrics to the traditional song"The Twelve Days of Christmas" the song contains a list of gifts received for the holiday.the list is cumulative 

JDBC Questions

jsp - JDBC
: Unable to compile class for JSP An error occurred at line: 20 in the jsp file...\localhost\Airlines-Project\org\apache\jsp\Flightdetails_jsp.java:69: cannot find symbol symbol : variable src location: class org.apache.jsp.Flightdetails_jsp 

Java Beginners

Difference between class,name,id attributes in each JSP tag
Difference between class,name,id attributes in each JSP tag  Can i know the difference between class,name,id attributes in each JSP tags.................. These 3 are only used for reference ..... And what are the differernces 

Struts Questions

How can i pass the valus from a JSP to the action class???
How can i pass the valus from a JSP to the action class???  hewllo wevryone... can anyone help me with how i can pass the value of menuId in my JSP and pass it in the action class 

Struts Questions

How do I compile the registration form?
How do I compile the registration form?  How do I compile the registration form as stated at the bottom of the following page (URL is below). Do I need ANT? If so, please give instructions. I am a student. http 

Core Java

Include directive vs Include Action
;) includes file into the JSP page at compile time. Include directive should be used...;jsp:include>) includes the output at runtime. Include action (runtime... of tag libraries with the taglib directive, you should use a compile-time include 

JSP Interview Questions

JSP
three tags to work with beans:- <jsp:useBean id="bean name" class"bean class... and the valuesaccessed. <jsp:useBean id="user" class="MyUserClass" scope="session"/> <...how can we use beans in jsp  how can we use beans in jsp    

JSP Tutorials

Using Abstract Class
method should be abstract. We can't instantiate the object of the abstract class...Using Abstract Class      ... class. This class must be inherited. Unlike interface the abstract class may 

Java Beginners

how to send my system.out.println in a class file to a jsp in Struts2
how to send my system.out.println in a class file to a jsp in Struts2   System.out.println("File" + f + " contains text " + text... to sent this to a JSP page 

JSP Servlet Questions

can we write a method in JSP - JSP-Servlet
to call another second jsp file. I can do it by redirecting my first jsp file to second jsp file, but I can't come back to the same place(instruction... a class's method() from jsp and I can come back to the next instruction of jsp 

Advertisements Advertisements
 

 

 

DMCA.com