Reputation: 10598
I installed Eclipse Juno recently and I see that JSP files are not properly code highlighted. Everything appears as if it is a normal text file.
The previous versions of eclipse used to be fine. Am I missing something ?
Upvotes: 2
Views: 6173
Reputation: 156
If you've installed Juno EE it should support .jsp editor.
Most probably, your Eclipse is "starting" with java less than v1.6 (for me it was as well, I have 1.3, 1.5, 1.6 javas installed; default was 1.5 and Eclipse was starting with it automatically)
I solved same problem with below way:
1) Right click on Juno shortcut and click Properties
2) In the field "Target"
You already should have something like below:
"D:\PROGRAM INSTALL\eclipse-jee-juno-SR2-win32\eclipse\eclipse.exe"
Add to the end of that line one more command as below (show to Eclipse with which java version it should start)
-vm "C:\Program Files\Java\jdk1.6.0_20\bin\java.exe"
My target looks like below:
"D:\PROGRAM INSTALL\eclipse-jee-juno-SR2-win32\eclipse\eclipse.exe" -vm "C:\Program Files\Java\jdk1.6.0_20\bin\java.exe"
3) Start Eclipse with changed target using your shortcut
4) On .jsp file now you will be able to chose "Open with --> JSP Editor"
Upvotes: 1
Reputation: 1986
It is because of Eclipse do not know what JDK do you like to use.
Configure
-> Convert the Project to an Faceted Project
.Properties
->Project Facets
and check Java
with a version of your choice.Upvotes: 0
Reputation: 1986
Try to Right-Click the .jsp-file and choose Open With
>JSP Editor
.
This should do the Trick.
Upvotes: 2