Eclipse doesn't use JUnit 4.10 Docs - eclipse

Can anybody give me advice on why my eclipse doesn't use the junit-docs? I'm using Eclipse Java EE IDE for Web Developers Juno Service Release 1 and the recent Oracle Java7 Version in ArchLinux.
thanks,
Andreas

I'm using the same version of Eclipse and I found that the JUnit javadocs link was pointing to a broken URL: http://www.junit.org/junit/javadoc/4.5. To change this, do the following
In Package Explorer, right-click your project and select Build Path --> Configure Build Path.
Under the libraries tab, expand JUnit 4 and junit.jar.
Select the Javadoc location and click "Edit".
In the Javadoc URL section, change the Javadoc location path to http://junit.sourceforge.net/javadoc/ or another version specific link.

Related

the superclass "javax.servlet.httpServlet" was not found on the Java Build Path

I have get a problem when I create a new web project in the eclipse.
There show 'the superclass "javax.servlet.httpServlet" was not found on the Java Build Path'.
I have find solution on the Internet, but that not work.
The solution is Project Properties-> Java Build Path-> Add Library -> Select "Server Runtime" from the list-> Next->Select "Apache Tomcat"-> Finish.
Is there anybody can give me other solution? Thanks very much.
My OS is macOS,tomcat is 9.0.0.M9,jdk is 1.8.0_101,the eclipse is jee-neon.
I have solved the problem by doing the following,
Actually i got this error, my scenario was..
I was using the APACHE TOMCAT SERVER VERSION 8.0, but the project i downloaded was using APACHE TOMCAT VERSION 7.0 it seems, so i changed it to version 8.
How was did was:
right Click on the Project properties.
In the Left menu, we can see the Java Build Path
Select the Library tab, and add the new Library.
In the Library Type, select the Server Run time, then click next and Finish will solve the problem.
All the Best
I tried above steps and still errors were there in JSP even runtime libraries were configured properly. I'm using java 8 and tomcat 8. So I unchecked "validate jsp fragments" under project properties > validation > jsp syntax.
With using Eclipse:
Version: Oxygen.2 Release (4.7.2)
Build id: 20171218-0600
I solved the Tomcat Server Library import as follows:
Right Click on the Project properties.
In the Left menu, we can see the Java Build Path.
Select the Libraries tab, and Add Library button.
In the Add Library window, select the Server Runtime in the list.
Click on Next button, Select the item Apache Tomcat mentioned with version in the list, and click on Finish button.
Wish it makes smile on your face!

How to create, use and run the tutorials from "The Java EE 6 Tutorial" in Eclipse?

The Java EE 6 Tutorial references java ee example projects available through the java ee 6 sdk update tool. The tutorial is oriented towards users of NetBeans and not Eclipse, but NetBeans is not an option for me.
I am new to Java EE and don't know how to take these samples and make an eclipse project from them.
The reason I don't just create a project and copy in the source is that I don't know which eclipse template or project structure I should use for each sample.
So, what should I do with these sample projects to get them up and running in Eclipse?
Thanks in advance.
Assuming you have all the required software to run the Java EE tutorial:
Install latest Eclipse IDE for Java EE developers.
Install Maven Integration for Eclipse (M2E) plugin from the Eclipse Marketplace (Main Menu: Help -> Eclipse Marketplace).
Install Subclipse plugin from the Eclipse Marketplace.
Install Glassfish tools plugin for your Eclipse version. Eg: Glassfish tools for Luna.
Add Glassfish server to Eclipse.
Get the Java EE Tutorial code using the Glassfish Update Tool. In my case, the Glassfish Update Tool did not bring all the codes from the example, so I checked out the Java EE tutorial code from the SVN. (File -> Import -> SVN -> Checkout Project from SVN). Create a new repository location specifying the URL. Example URL: https://svn.java.net/svn/javatutorial~svn/trunk/example.
Ones you have the examples imported to an Eclipse workspace, you can build an individual example projects as follows:
From the Eclipse project explorer window select the project folder you want to build. Example: examples/web/jsf/hello1
Right click on the project folder and select import -> Maven -> Existing Maven projects option. Tick the option to add the project to your workspace.
From the project explorer window, now select the newly added project folder.
Now build the project using option Project -> Build project option.
After the successful build, run the application using Run -> Run As -> Run on Server option.
This worked for me. I had exactly the same question and being new to everything Eclipse, I had trouble figuring this out.
From the link you provided there is a Required Software section. Basically you would need to follow all those instructions except for where NetBeans IDE is concerned.
For Eclipse related configuration I would recommend the Eclipse (Helios) online documentation. Indigo is the latest version of Eclipse but not all plugins support that version.
There is a section in the documention for creating enterprise applications:
Creating an enterprise application project
After familiarising yourself with how enterprise projects are created within Eclipse you should be able to import the sample source applications used in the Java EE tutorial without too much hassle.
You would probably want to install the GlassFish plugin for Eclipse as well.

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.

Intelliji idea to eclipse migration. Where to find same settings for IntelliJ IDEA's "Web Resource Directory Path Dialog" in Eclipse?

I have j2ee web project in IntelliJ IDEA with complex web resource directory structure
Where to find analogue of this setting in Eclipse?
First, make sure that you have Java EE development portion of Eclipse installed. The easiest way is to download "Eclipse IDE for Java EE Developers" packages from http://www.eclipse.org/downloads. Next, make sure that you've created a "Dynamic Web Project". Finally, go to Project Properties -> Deployment Assembly.
If you don't see Deployment Assembly page, you are using an old version of Eclipse. There is a way to do this in the older versions, but you will be happier if you upgrade to the newest release. See link above.

Eclipse Java EE plugin

I want an Eclipse Java EE plugin which I can install directly from Eclipse.
I searched about it on Google and found some ones but couldn't figure out how to download them directly from Eclipse.
One plugin I found was WTP but couldn't find the location of the WTP repository that I can enter in the Eclipse's Software Update tool.
I am using Eclipse 3.4.2 (Ganymede)
I warmly suggest to install Eclipse IDE for Java EE developers which already includes the Web Tools Platform (WTP) and much more (see this page for a full comparison).
As an alternative, you can download a zip of the Web Tools from here or install it via Update Manager using this URL:
http://download.eclipse.org/webtools/updates/
If you have Eclipse Galileo you should go to Help > Install New Software. Then the list of available sites to install updates will appear. You should add the WTP plug-in to this list, for example.
To do this, click on Add and enter the name and location (you can get this from the WTP site). Then, select this plug-in and click on Finish. That's it and it's valid to all plug-ins.
when you are searching do a comprehensive search http:// in eclipse
Google search the repository containing Java EE WTP
Install the new software in your IDE, restart your IDE, right click under the project explorer view, select new, the option for creating a dynamic web project should now be available. I did it using the luna version of eclipse which dose not have the default and now have the option.
Use
help---install new software--type http://findbugs.cs.umd.edu/eclipse
And go from there