Where can I find Java EE 6 sample - java-ee-6

Does anyone know where to find and download the Java EE 6 tutorial examples, like the Hello1 and Hello2, etc. I can't find them anywhere!

Install Netbeans with GlassFish server from here. Then in the new project dialog, click Samples and Select Java Web. There you can see few Java EE 6 examples like "ServletStateless", "Pet Catalog", etc.
Hope this helps.

Tutorials might not have been installed. In that case you can do following:
Open the Services tab in NetBeans IDE and expand Servers.
Right-click the GlassFish Server instance and select View Domain Update Center to display the Update Tool.
Select Available Updates in the tree to display a list of updated packages.
Look for the Java EE 7 Tutorial (javaee-tutorial) package in available ad-ons.
Install

Related

Unable to add JSP files into Project

Here is a picture of my environment and I am unable to create JSP files, I am not sure what I am missing let me know what I can answer to get a resolution. Thanks.
If anyone is having this issue with Sring Starter Project in Spring Tool Suite 4:
Help -> Install New Software -> WorkWith Spring Tool Suite 4
Scroll to bottom and select :
Web, XML, Java EE and OSGi Enterprise Development
You are probably using the standard version of eclipse. (As you are using the default "Java" perspective, not "Java EE".)
The solution would be to download the version of eclipse that has Java EE support. This version will enable you to create Servlets, JSPs and many more through wizards (that's what you seem to be looking for).
Get the current version (Juno SR2) of Eclipse IDE for Java EE Developers here: http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/junosr2 (choose the version according to your system in a box called Download Links at the right-side of the page).
The wizard will be available then. Also, don't forget to change the perspective to Java EE (in a button at the top of the right-hand side of you eclipse), as it will show your web projects in a better organized way.

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.

Cannot select framework to use in new web application using Netbeans on Ubuntu

Using Netbeans 6.9.1 on Ubuntu 10.10 Beta, when I try to create a new web application, none of checkboxes on the frameworks page are selectable. Here are my exact steps:
File > New Project
Choose Java Web from Categories and Web Application from Projects, and click Next
Accept the defaults on the Name and Location page, and click Next
Accept the defaults on the Server and Settings page (Server: GlassFish Server 3; Java EE Version: Java EE 6 Web, and click Next
On the Frameworks page, 6 options appear with checkboxes (Google Web Toolkit, Spring Web MVC, Echo2...), but I can't figure out how to check one. I can do it on my Windows machine running the same version of Netbeans. I have all available plugins installed in Netbeans.
What am I missing?
after a lot of searching, I found a solution.
In my case it seemed to be open-jdk that was causing the issue...
I wrote the solutions down here:
http://netbeans.org/bugzilla/show_bug.cgi?id=191959
hope it helps...
dGo
I had the same problem... after many attempts to fix this i removed netbeans from the software center, installed it manually.. and now it all works smooth :D
I do believe that netbeans from the repo is 6.9 though and i installed 6.9.1 (on ubuntu 10.10)
Also I installed the sun java sdk: sudo apt-get install sun-java6-jdk
Try this : first, create your project without selecting a framework, then choose the framework you want to use in its properties.
Here you go, I ran into the same problem and finally figured out how to resolve it
Go to Tools > Plugins > Installed Plugins (Tab)
You will find the following plugins there
Java SE
Java ME
Groovy
Base IDE
Java Web and EE
Ensure that Java SE, Base IDE, Java Web and EE plugins are active, if not activate them. You should all set from there.

Eclipse, how to combine 2 editions

I'm using the PHP edition of Eclipse, but was told that I also need the Java EE edition. I'd like to install them both in the same install (single launch) and not have to open 2 editions in parallel. Is there a way to easily get this done? I'm new to eclipse, so detailed instructions are welcome.
I would do it the other way around: first install Eclipse IDE for Java EE developers and then add the PHP Development Tools (PDT) from the update site (instructions here).
This should be pretty straightforward. Download one edition, then have it install the plugins comprising the other. This is done via Install New Software in the Help menu; first time out you will need to hit the Add button and tell it about the update site URL for the plugin set you want to install. You can find the update site URLs via the main Eclipse website.
It looks like the Java EE version is a superset of the PHP one, at least for things mentioned in this chart...
http://www.eclipse.org/downloads/packages/compare-packages
So, I would start with Java EE. Check the plugins and features and use the Help->Install dialog to add any new plugins you want.
In your case, I would start with the "Eclipse IDE for Java Developers" and then add those plugins needed for PHP. From this chart, it looks like you'll need to add Webtools and the PDT.

eclipse 3.5.2 how to add a new server?

I just download eclipse 3.5.2 and I'm trying to add a tomcat server.
But I just can't seem to find where the server view is.
I thought it used to be in view => show views => server but it doesn't appear to be there.
Does anyone know where they moved it to?
Probably you downloaded Eclipse plain Java version instead of Eclipse IDE for Java EE Developers distribution.
If this, you can install Java EE plugins via Eclipse Update Manager. Then you can see "servers" window.
You should find it under Window->Show View->Servers. If you don't find Servers in the View popup then you can try the Window->Show View->Others->Server->Servers.
It can also be done using File->New->Other->Server->Server
1- You should try this way : Help >> Install New Software
2- And then select your eclipse in Work with section. For example: ["Juno - http://download.eclipse.org/releases/juno(i'm using this version)"]
3- And then click ((Web, XML, Java EE and OSGi Enterprise Development))
4- After all process enjoy to click servers section in window >> show windows >> other >> server >> servers !!!