Eclipse Juno JSP syntax highlighting doesn't work

元气小坏坏 提交于 2020-01-12 13:45:11

问题


I installed the Java EE version of Juno and opened an existing project I'm working on. First thing I noticed was that there was no syntax highlighting on my JSP's. I checked my install and I do have WTP installed.

Any ideas why this isn't working? It has worked out-of-the-box on every other version of Eclipse that I've used.


回答1:


Same problem happen to occur for me. I had tried this solution and it worked for me.

  1. Check your JDK must be 1.6 or later. If not install JDK 1.7

  2. If problem still persists, In Eclipse Go to Help -> Install New Software -> WorkWith (Select Juno - http://download.eclipse.org/releases/juno) -> Expand Web, XML, Java EE and OSGi Enterprise Development -> Web Page Editor (Check it) and install it.

    Restart eclipse after installing. Now open a existing jsp file with Web Page Editor. To do this right click on jsp file open with -> Web Page Editor. If Web Page Editor is not present go to Other -> Internal Editors -> Web Page Editor Or Go to new file create with .jsp extension and open with web page editor

    Now in Eclipse Goto Window -> Preferences -> General -> Editors -> File Associations Select *.jsp and make web page editor as default editor

  3. Create a shotcut for *Eclipse *on desktop and right click on shortcut go to properties->shortcut tab -> target

    In the target add these line in braces (-vm "path for your bin folder of jdk 7") For Example target should look like "C:\eclipse\eclipse.exe" -vm "C:\Program Files\java\jdk1.7.0_06\bin"



来源:https://stackoverflow.com/questions/12324201/eclipse-juno-jsp-syntax-highlighting-doesnt-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!