Eclipse Juno JSP syntax highlighting doesn't work - eclipse

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.

Same problem happen to occur for me. I had tried this solution and it worked for me.
Check your JDK must be 1.6 or later. If not install JDK 1.7
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
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"

Related

Install WTP on Eclipse

I'm trying to create a new dynamic web project with eclipse, which is not an option under File -> new ->
It looks like if I install Jetty, or WTP I'll be able to do that, but there is no dropdown selection for Eclipse -> Install new Software menu., which the instructions in the previous link say I should go to.
When I search install in the help search bar, the only option that comes up is Navigate -> Open Setup -> Installation, and when I click this eclipse just opens the file installation.setup. At this point I don't know what more I can do with this file.
This question posted some type of an answer to installing jetty, but I don't really know what they're talking about or how to find out if I have the things they are talking about and other solutions post drop down instructions(e.g. Help -> Install New Software..) that don't actually seem to exist.
I'm using Version: Oxygen.2 Release (4.7.2) of eclipse for MacOS
Install the newest version of Eclipse(currently photon: 2018-09 (4.9.0))
Possibly install the newest JDK and set it as the default under Eclipse -> Java -> Installed JREs
Help -> Install New Software (Do not search anything in the help bar)
Enter http://download.eclipse.org/webtools/downloads/drops/R3.12.0/S-3.12.0.M2-20181101035339/repository/, as described here into the works with search bar and click add. Proceed by clicking ok, next, next .....

Installed MacVim, and now Eclipse is opening JSP files in it when i don't want it to

I'm using this version of Eclipse
Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600
on Mac Sierra. I just installed MacVim and now whenever I try and open a JSP file within Eclipse (using Shift ⇧+Command ⌘+R for example), the file is getting opened in MacVim instead of the Eclipse editor. I went to
General -> Editors -> File Assocations
and added "*.jsp", but even after restarting Eclipse, the JSP files still open in MacVim instead of the Eclipse editor.
How can I force my .jsp files to open in the Eclipse editor?
Generally, what you've done it's the right way.
You may have to select the right default to make it work:
Then you can check if the associated editors appear on file open submenu:
As you can see, JBoss Tools JSP Editor is highlighted to represent the default.
If these steps aren't working in your environment, there's probably a sort of settings corruption (experienced very often).
What you can try:
run eclipse -clean -refresh
create a brand new Workspace
make a new and clean eclipse installation
Make sure you have Eclipse WTP installed (or just install it):
P.S. use the update-site for your eclipse version (Mars), I'm on Neon.

JSP Editor for Eclipse Juno

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 ?
Try to Right-Click the .jsp-file and choose Open With>JSP Editor.
This should do the Trick.
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"
It is because of Eclipse do not know what JDK do you like to use.
Rightcklick the Project, select Configure -> Convert the Project to an Faceted Project.
Go to Project Properties->Project Facets and check Java with a version of your choice.

JBoss Tools - Disabling Visual Editor

I just added JBoss tools and I like a lot of what I get from it. However, I noticed that my .xhtml files are loading a /lot/ slower (on the order of several seconds) than before I installed JBoss tools. I'm willing to accept some slowdown (there's always overhead from using tooling sitting ontop of Eclipse) but this is a pretty long wait. I suspect it has to do with the visual editor that JBoss has added for .xhtml. I am using windows 64 bit and I can't use this editor. I've also tried following the advice at this link
http://docs.jboss.org/tools/whatsnew/vpe/vpe-news-3.3.0.M2.html
and adding -Dorg.jboss.tools.vpe.loadxulrunner=false to the eclipse.ini but I didn't notice any speedups. I also uninstalled the plugin for the JBoss visual editor and didn't see any results. After uninstalling the plugin the visual/source, source, and preview tabs are still at the bottom of the .xhtml editor, so maybe I uninstalled the wrong one?
I'm using Eclipse for Java EE Juno service release 1 Build id: 20120920-0800. I have the CDI, dynamic web module, Java, javascript, JSF 2.1, JAX-RS 1.1 JBoss Maven Integration 1.0 and JPA 2.0 facets installed on this project.
It is hard to say what you just uninstalled.
If you want just uninstall visual editor you can do such thing:
Just install onece again Eclipse and when you install JBoss Tools just doesn't select visual editor
Try to unistall visual editor. I think (but I never tested it) you should remove from plugins and features directoris wich starts from org.jboss.tools.vpe
I don't know if there can be some problems with dependencies and so on - you should make backup of Eclipse directory before making any changes.
Maybe it will be sufficient just open the files with other editor:
You can just open single file using other editor, just click in Package explorer view on the file with right click and choose Open with... menu - then you can open the file with for example HTML editor:
You can change the default editor for all files by open Window->Preferences menu and find Find associations position. There should be *.xhtml extensions - choose it and change the default editor.

JSP editor for eclipse, does it exist?

I noticed that my Eclipse does not include JSP Editor. Does standard JSP editor exist for Eclipse and if so, where can one download it from?
The JavaEE version of Eclipse has full JSP support. The standard java development version doesn't.
Alternatively, you should be able to install the WebTools plugin(s) into an existing Eclipse, that should give you JSP support also.
I had this same problem!
I resolved it by switching my eclipse perspective to JAVA EE perspective.
Go to help -> Install New Software and install webtool.
And for whomever that still not seeing the editor, set JSP editor to be the default editor for JSP files in this way
Having the same problem, I researched this and I found many solutions. After installing the Web Tool PLug-Ins, I was able to get the .jsp editor to work. Its important to know that you must close your .jsp files then reopen it, or you may be convinced that the solution didn't work. You can confirm that the Web Tool Install worked if you go to the following:
Window -> Preferences
In the list of options, you will see General. Expand that menu.
Expand the "Editors" menu
Click on the option "File Assocations"
There will be a "file type" (I'm using Keleper) with a list of different file types.
In this list, select .jsp.
In this list you should see a list of editors. Select JSP editor. Then click OK.
This is something I discovered when trying to get mine to work.
Go To Preference->General->Editors->File Associations
Check editor for *.jsp type.
If it's not present, add one.
If it's Class file viewer, then remove it.
Worked for me.
To install from within IDE for newer Eclipse clients:
Help->Eclipse Marketplace
Search for "Eclipse Java EE Developer Tools". Install.