How to add HTML Editor to Eclipse? - eclipse

I just upgraded to Eclipse Kepler, the non-J2EE version. The HTML Editor is missing. I read elsewhere that I could install the "Web Page Editor", which I did, but the system now generates all kinds of errors when building my project. Apparently it can't find some JSF classes. I have no interest in using JSF.
The Web Page Editor install did include the HTML Editor, but it was so much trouble I had to uninstall. How do I get my old HTML Editor back?

Alternatively, you can just install the "HTML Editor" from the WST package (the same one provided in Java EE Edition) in Eclipse 4.x, just by looking for "HTML Editor" in the marketplace (but, indeed, i haven't been able to found it in the "install new software").
On my side i prefer to work on Eclipse "Java Edition" most of the time (just adding the few additionnal features i really need).

Go to Install New Softwares-> Select your version eclipse repo. eg Mars - http://download.eclipse.org/releases/mars -> Expand Web,XML, JAVA EE option -> Install Eclipse Web Developer Tools

I have used CodeMix for a while and it's a wonderful tool, it can easily install as a plugin and a wide tools will be available like HTML Validation, Emmet, CSS IntelliSense, Snippets, take a look in this site https://www.genuitec.com/sox/tech/html5-with-codemix/

I had a similar issue once, and I tried a HTML editor addon for eclipse, but haven't found one that's any better than the one that comes with the Java EE edition of eclipse.
I suggest you download the Eclipse IDE for Java EE Developers.

You may want to install Eclipse Web Developer Tools
Bet you after edit HTML you will have to edit CSS and JavaScrip too

Related

Eclipse Juno no JSP in Dynamic Web Project (but everything else is fine)

The short question, is when creating dynamic web project (1.6 jdk) I can see all file types to create but there is no option for jsp. To add to that when I check file associations there is no JSP editor to select from.
A slightly longer version is I simply want to edit JSP files, I have Juno EE version installed and it says web tools platform is installed and everything works just fine.
However while everything works, there was no *.jsp in file associations and on adding it there was no JSP editor in the list. This is an out of the box Juno EE.
So I checked installed plugins and it tells me that web tools is installed, there is an icon and a load of plugins. They are all listed under Java EE in the plugin/installation list. I even tried installing just 'java web develop tools' which lists as 'tools for working with jsp' but when I do that I get ""Eclipse Java Web Developer Tools" will be ignored because it is already installed." however I cannot uninstall it because it's part of Java EE eclipse platform. I have no other plugins installed that might have broken this, however it has taken some time to get all the settings good so I'd rather not install it all again.
So I tried to install the full WTP by hand and it said some things were already installed, but it installed others. However, still no JSP editor. Hence why I tried a dynamic web project to see if I could create JSP and it wasn't listed.
So, eclipse base install has absolutely everything (xml, html editor, java editor, all the tools) but just not JSP.
My JDK is fine as dynamic web project is not created unless you have a valid 1.6 or above.
Anyone help?
It seems your missing Eclipse web developer tools and Eclipse java web developer tools.
Help>Install new software>http://download.eclipse.org/releases/juno, select appropriate items under Web,XML,Java EE
Hope this helps
In Eclipse Juno, select File/New/Other, then type in jsp in the wizard field. Select jsp file or jsp tag and there you go. Hope that helps.
Try to install Eclipse with Java EE developer.It should work.
You can go to Eclipse Market place and search for "Java EE Developer tool". On clicking it you should be able to see if your Web developer tool is selected or not. Please select that option and your issue will be resolved.
Check your path. Make sure it is pointing to at least a 1.6 version of Java. Restart Eclipse. That fixed it for me.
If you have installed every thing proper and still it is not showing JSP option while creating new .jsp file then click to the web icon on top right corner of eclipse. If it doesn't work then you need to install updated version of eclipse.
I also faced the same problem; I looked through the "Web,XML,Java EE..." installables available at under Kepler downloads:
and that brought me the New->'JSP File' context menu item.

Eclipse web.xml editor

I have Helios Service Release 2 installed with WTP tools. I created a simple dynamic web project. When I open web.xml, which opens with default XML editor, it shows only two tabs:Design(Standard XML tab) & Source.
When I worked with Rational Software Architect in past, it opened web.xml with tabs like 'Servlet', 'References' so on to let you easily edit various parts of web.xml in visual point & click manner.
Is this possible with Eclipse?
btw, I tried 'Open with' menu option but couldn't find appropriate editor for web.xml
Thanks
You can install JBoss tools through Eclipse marketplace to have a complete web.xml editor. You don't have to install all the plugins. In my case I just installed the "Context and Dependency Injection Tools"
Eclipse currently does not have this functionality. IBM did not donate this part of the tooling from Rational Software Artifact when it seeded Eclipse Web Tools Project.
Note that there is an effort that is just getting started to implement these editors at Eclipse, but you are not going to be able to use the fruit of that work until Juno release in the Summer of 2012.
In the meantime, you will need to use plain XML editor or seek third-party solutions, such as MyEclipse. Note that MyEclipse is not compatible with Eclipse WTP. It is separate tooling stack for web app development.

I don't have "Dynamic Web Project" option in Eclipse new Project wizard

I have download the Eclipse IDE for Java developer, HELIOS. I click 'File -> New -> Project...', but I only have "General, CVS, Java project, Examples". I would like to be able to create "dynamic web project", why do I not have this option?
I searched from internet, and the reason is probably I don't have Eclipse Web Development Tools, but how can I get it?
-----------EDIT-----------
I know by install Eclipse IDE for Java EE developer can solve the problem. But, I am working under Linux Ubuntu, how to get Eclipse Java EE version for Ubuntu Linux machine?
Not all of them are required (I think), but after installing the components listed below I got the "Dynamic Web Project" template added to my Eclipse (Indigo). The list is:
Eclipse Java EE Developer Tools
Eclipse Java Web Developer Tools
Eclipse Web Developer Tools
Eclipse XML Editors and Tools
You can install those packages by clicking on "Help" > "Install New Software", selecting the repository that corresponds to your Eclipse build (i.e http://download.eclipse.org/releases/indigo for Indigo). The packages are grouped under "Web, XML, Java EE and OSGi Enterprise Development".
I think you need the Web Tools Platform package for this. Not very sure though. You can add it to your current eclipse through Help > install new software.
Then add the software repository site location for WTP for your version of eclipse. This is how you can install plugins in eclipse.
"http://download.eclipse.org/releases/kepler"(If you have Eclipse Kepler)
Based on your eclipse choose above link and copy in
help>Install new software
paste in "work with" click add
give any name you want - plugin
In the list select>"Web, XML, Java EE and OSGi Enterprise Development">Eclipse Java EE
Developer Tools. select and install it.
After restart you will have your Dyanmic web project option.
Thank You.
Like me if it worked please
You only need to install
Eclipse Java EE Developer Tools
and you will be able to see "Dynamic web project" wizard.
Download Eclipse IDE for Java EE Developers, everything you need should be included inside. This is the most painless way of obtaining Web Development Tools.
If you want to leave your existing Eclipse IDE, you can go to 'Help -> Install New Software' and find WDT to install them, although I haven't personally tried to go this route, so I can't guarantee everything will work out of the box.
Edit: not sure if it's included in Ubuntu's repository. One other way to do it is to download Linux 32-bit (or 64-bit, depending on your machine) version of Eclipse EE, but you'll have to check if it's the source you have to compile yourself, or an already compiled binary.
Fwiw, I downloaded the standard Java EE version of the Mars version of Eclipse, and ran into the same deal -- didn't see a Web option if I tried File >>> New >>> Project wizard.
The good news: Probably no extra installation needed.
It looks like what I wanted was to select the Other option rather than the Project item (strangely this is what comes up when you hit Ctrl-N, but that also lets us know we're probably on the right track):
After you select "Other", you'll see the "Select a wizard" screen, where you can select "Dynamic Web Project" and profit.
HELP
Install New Software
In Work With input box paste this url: http://download.eclipse.org/releases/{version}/
Replace version with your eclipse's version (eg: LUNA)
Hit enter
Underneath box will have different options, select package of your need.
Maybe Eclipse WTP plugin has been accidently removed. Have you tried re-installing WTP using this location ? If I were you I would have reinstall Eclipse from strach or even better try Spring ToolSuite which integrates with Google Plugin for Eclipse seamlessly (usign Extenstions tab on STS Dashboard)
Just download any eclipse with "EE" letters
I had a similar problem, you may find that going to the top right corner of your page in Eclipse and click "Java EE" instead of "Java" will solve your problem. I had EE installed correctly like you, and this solved the issue for me. Hope I helped :)
Go to Eclipse --> Help
and click--->Install new software
then you can see a window ...There a click add
Then put below url in url box: http://download.eclipse.org/webtools/repository/juno/
i am having juno
if u have any other means put that name .
then click ok.
Make sure to check dynamic web app in "other section" i.e File>New>Other>Web or type in "dynamic web app" in your wizard filter. If dynamic web app is not there then follow following steps:
On Eclipse Menu Select HELP > INSTALL NEW SOFTWARE
In work with test box simply type in your eclipse version, which is oxygen in my case
Once you type in yur version something like this "Oxygen - http://download.eclipse.org/releases/oxygen"will be recommended to you in drop down
If you do not get any recommendation then simply copy " http://download.eclipse.org/releases/your-version" and paste it. Make sure to edit your-version.
After you Enter the address and press enter bunch of new softwares will be listed just ubderneath work with text box.
Scroll, find and Expand WEB, XML, Java EE .... tab
Select only these three options: Eclipse Java EE Developer Tools, Eclipse Java Web Developer Tools,Eclipse Web Developer Tools
Next, next and finish!
The easiest way to handle this is to install the full package installer with all weblogic add ons from the oracle site. This will install eclipse with all the features/plug ins you need.
http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/oepe-network-installer-2371168.html
This helped me find the "Dynamic web project" in Eclipse 2020-12 version. Restart the eclipse and go to file->new->other->web and you will see
project will be available.
This option might be missing because more than one and other than Tomcat runtime is selected. At the marked spot I was shown that I have selected Java JDK runtime. After unselecting it Dynamic Web Module reappeared.

edit facelets file eclipse 3.5

I am using Eclipse 3.5
In order to use web - I downlaoded web tools. However, I can't edit facelet file (xhtml)! It opens it as txt file and doesn't complete the tags.
Is there a place that I have to configure it in Eclipse?
Eclipse 3.5's WTP does not support Facelets out of the box. You need to use Eclipse 3.6. Also don't download WTP separately, but download the version of Eclipse that already has it integrated. You need "Eclipse IDE for Java EE Developers" from http://www.eclipse.org/downloads/
If you have to use Eclipse 3.5, you can install the "richfaces" editor from JBoss Tools (see http://www.jboss.org/tools). Granted, the name is completely awkward, but it's actually a general JSF/Facelets editor that works better than the one bundled with Eclipse 3.6.
You can install and use this without having anything to do with JBoss AS. The only downside of the Facelets editor from JBoss tools is that it depends on the dreaded XULRunner, which might not be available for your platform (32 bits is usually okay, but 64 bits only works on Linux).
Try Window > Preferences > Editors > File Associations to find the xhtml filetype and associate it with Web Page Editor or HTML Editor

How to make "Eclipse for Java developers" include Javascript capabilities?

I'm new to Eclipse, and have the following question:
I would like to use Eclipse to program java and javascript. I went to eclipse.org and downloaded "Eclipse for Java Developers", though there was also an option to download "Eclipse for JavaScript developers".
So the question is: How do I extend my "Eclipse for Java Developers" to include the JavaScript capabilities included in "Eclipse for JavaScript developers" ?
Is that even possible ?
Thank you !
Install Eclipse's WTP (Web Tools Platform) using the update site featured on the following page: http://download.eclipse.org/webtools/updates/.
To do this, you should:
1) Open up the software updates dialog (Help -> Install New Software...);
2) Click the 'Add' button;
3) Enter a suitable name (WTP), and the aforementioned URL;
4) Select whichever releases of WTP you would like to install;
5) Press 'Next' and follow the rest of the instructons.
(Note: The WTP update site may already be in the list of available sites in the Available Software dialog, so you should probably check before installing from scratch.)
welp's answer is the best approach.
You can overlay an Eclipse download over another Eclipse download. I do this to get the Java EE Eclipse and the source code for Eclipse.
You answer "No for all" when your unzip program asks you if you want to overlay files.
You can also start from Enide and install using update site, install button or p2f file.
Any plugin that depends on JSDT (e.g. Nodeclipse, JSDT-EXTJS, JSDT-jQuery, AngularJS-Eclipse) will be installed together with JSDT.
I know that this question is old but there are some news regarding the JavaScript (or let's say the direct web development in general) development in eclipse:
http://eclipse.org/orion/