"Java file" & "Jsp file" compilation issues in Eclipse
Hi,
Eclipse
Question 1:
----------------
I have set the value for preference->java->Installed JREs as : j2re1.4.2_07 not to jdk
When I write a java file, its compiling, how? From where its using "javac" exe file for compilation.
Question 2:
----------------
Whereas in prefrence->Tomcat->JVMSettings -> JRE(drop down box) set value as j2re.1.4.2_07
When I write a jsp file as follows
index.jsp
------------
<html>
<body>
<%java.util.Date d = new java.util.Date();%>
Todays date is <%= d.getDate()%> and this jsp page worked!
</body>
</html>
when i try to save this file & strat tomcat I got exception as follows:
Exception:
***********
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
Please clear my doubts.
Thanks,
Hari