Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Java EE 7 Development with NetBeans 8
  • Table Of Contents Toc
  • Feedback & Rating feedback
Java EE 7 Development with NetBeans 8

Java EE 7 Development with NetBeans 8

By : David R Heffelfinger
4.8 (6)
close
close
Java EE 7 Development with NetBeans 8

Java EE 7 Development with NetBeans 8

4.8 (6)
By: David R Heffelfinger

Overview of this book

The book is aimed at Java developers who wish to develop Java EE applications while taking advantage of NetBeans functionality to automate repetitive tasks. Familiarity with NetBeans or Java EE is not assumed.
Table of Contents (13 chapters)
close
close
12
Index

Deploying our first application

NetBeans comes pre-configured with a number of sample applications. To make sure everything is configured correctly, we will now deploy one of the sample applications to the integrated GlassFish application server that comes bundled with NetBeans.

To open the sample project, we need to go to File | New Project, then select Samples | Java EE from the Categories list in the resulting pop-up window. Once we have selected Java EE from the categories list, a list of projects is displayed in the Projects list; for this example we need to select the JavaServer Faces CDI project. This sample is a simple project involving both JSF and Contexts and Dependency Injection (CDI).

Deploying our first application

After clicking on the Next> button, we are prompted to enter a project location in the next pop-up window. In this case, the default value is sensible.

Deploying our first application

Once we click on the Finish button, our new project is displayed in the Projects window:

Deploying our first application

We can compile, package, and deploy our project at one go by right-clicking on it and selecting Run from the resulting pop-up menu.

Deploying our first application

At this point, we should see the output of the build script. Also, both the integrated GlassFish application server and the integrated JavaDB RDBMS system should automatically start.

Deploying our first application

As soon as our application is deployed, a new browser window or tab automatically starts, displaying the default page for our sample application.

Deploying our first application

If our browser is displaying a page similar to the preceding one shown, then we can be certain that NetBeans and GlassFish are working properly and we are ready to start developing our own Java EE applications.

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY