Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"Java file" & "Jsp file" compilation issues in Eclipse

843838May 1 2006
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2006
Added on May 1 2006
0 comments
175 views