Eclipse Juno JSP语法高亮不起作用 [英] Eclipse Juno JSP syntax highlighting doesn't work

查看:443
本文介绍了Eclipse Juno JSP语法高亮不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Java EE版本的Juno,并打开了我正在开展的一个现有项目。我注意到的第一件事是我的JSP没有语法突出显示。我检查了我的安装,我已经安装了WTP。

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.

任何想法为什么这不工作?它已经在我使用过的每个其他版本的Eclipse上开箱即用。

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

推荐答案

同样的问题发生发生在我身上我已经尝试过这个解决方案,并且对我有用。

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


  1. 检查你的 JDK 必须是 1.6 或更高版本。如果没有安装 JDK 1.7

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

如果问题仍然存在,在 Eclipse 转到帮助 - >安装新软件 - > WorkWith(选择Juno - http://download.eclipse.org/releases/juno) - >展开 Web,XML,Java EE和OSGi企业开发 - >网页编辑器(检查它)并安装它。

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.

安装后重新启动eclipse。现在使用网页编辑器打开现有的jsp文件。
要做到这一点右键单击jsp文件打开 - >网页编辑器。如果网页编辑器不存在,请转到其他 - >内部编辑器 - >网页编辑器

转到带有.jsp扩展名的新文件,并使用网页编辑器打开

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

现在在 Eclipse Goto 窗口 - >偏好 - >一般 - >编辑 - >文件关联
选择* .jsp并将网页编辑器作为默认编辑器

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

为* Eclipse *在桌面上,右键单击快捷方式,转到 properties->快捷方式选项卡 - >目标

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

目标在大括号中添加这些行( -vmpath for你的bin文件夹jdk 7)
对于示例目标应该看起来像
C:\eclipse\eclipse.exe-vmC:\Program Files\\ \\ java\jdk1.7.0_06\bin

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"

这篇关于Eclipse Juno JSP语法高亮不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆