Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

org.apache.jasper.JasperException: Unable to compile class for JSP

Status
Not open for further replies.

seralasu

Programmer
Nov 1, 2006
3
TR
I have a problem:org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 14 in the jsp file: /deneme.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\ilkdeneme\org\apache\jsp\deneme_jsp.java:13: cannot resolve symbol
symbol : class random
location: class org.apache.jsp.deneme_jsp
Random rastgelesayi=new random();
^


An error occurred at line: 14 in the jsp file: /deneme.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\ilkdeneme\org\apache\jsp\deneme_jsp.java:14: cannot resolve symbol
symbol : method nextint ()
location: class java.util.Random
int sayi=(math.abs(rastgelesayi.nextint())%tavan)+1;
^


An error occurred at line: 14 in the jsp file: /deneme.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\ilkdeneme\org\apache\jsp\deneme_jsp.java:14: cannot resolve symbol
symbol : variable math
location: class org.apache.jsp.deneme_jsp
int sayi=(math.abs(rastgelesayi.nextint())%tavan)+1;
^
3 error
 
Java is case sensitive - your class names and methods appear to be in lower case (each Math instead of math, Random instead of random, nextInt instead of nextint).

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top