Glassfish 4.1 and J2EE version 7 Install

Before install environment.

Java EE 7 SDK distributions requireJDK 7 Update 65 and above or JDK 8 Update 20 and above. (Weshould have Java 8 installed?)

JAVA_HOME environment variable needs to point to the JDK installation directory, (not the Java Runtime Environment (JRE) software).

Assuming Netbeans 8.0.2 installed with Java SE 7 but preferably 8.

Download Java EE 7 and Glassfish

We need the ‘Java EE 7 SDK Update 1’ which includes‘Oracle Glassfish Server 4.1’

Accept the license

For Glassfish make sure you use the Normal windows version (Not Web Profile).

Install the Java EE 7

Best to just install it in the root c drive using a zip tool

Installing Packages

Go to C:\glassfish4\bin and execute updatetool.bat

You will probably need to set up to get past the USQ proxy by using the proxy environment variable of white list the site 

After it finishes need to run the updatetool command again and it will pop up a window

Update the Java EE tutorial and first cup

Select install and accept the Agreement

Let it install

Netbeans

Link Glassfish Netbeans Servers

Add a new server

Add a new Glassfish server

Pint to where the Glasssfish server was installed

Allow access if needed

That will set up the default access Private Network

The server 4,1should be set with default ports and domains

Test the system install Maven archetypes for Netbeans

Select the Services Tab and open Servers

Open the servers and start the Glassfish server

Load the Duke Boosktore project located in C:\glassfish4\docs\javaee-tutorial\examples\case-studies (this is assuming c:\glassfish4 was where you installed and run the updatetool in.

Open project and navigate to the project directory and select dukes-bookstore

Run the project and that should load it into the Glassfish server and download the Maven pom files needed for the project.

Select the Glassfish server

Note: THIS WILL PROBBALY FAIL DUE TO THE PROXY. WILL NEED TO FIND A WAY AROUND THE PROXY. I THINK LASTIME THE SITE WAS WHITELISTED SO IT OCULD BE FINE FOR YOU.

If it worked correctly it will open a web browser on