Java EE 8 (using NetBeans IDE 8.2) starting from sample code Part 1 Environment construction

Java EE 8 finally released

Two weeks have passed since the release of Java EE 8. Suddenly just before JavaOne? (Or is it planned?) I was surprised at the announcement of the official release.

I tried a trial program of Java EE 8 while experimenting with some applications while using the sample program provided from the IDE (NetBeans) environment settings.

First of all, environment construction

From the Java EE 8 SDK download

Java EE 8 SDK download page Download the "Java EE 8 Platform SDK" from. (I want to try various things)

javaee8_img001_ee_install_2.png

As stated on the page, the SDK includes sources and APIs as well as

--Code sample --API documentation --Tutorial

And Glassfish 5 is included. After downloading, unzip and place it in any folder. This time, I placed it directly under C (C: \ java_ee_sdk-8 \ glassfish5).

Install Netbeans 8.2

Netbeans 8.2 download page Download from

javaee8_img003_netbeans_dl_2.png

At the time of installation, proceed according to the screen, but since the first "Select application server to install with IDE" is Glassfish 4.1.1, uncheck the check box and do not enter it in the installer.

javaee8_img002_netbeans_install.png

Add server instance

After successfully installing Netbeans 8.2, start it Add the application server that was not included during installation.

Select a server

Menu> Tools> Server Bring up the server screen from and click the "Add Server" button to add a server instance. Server: GlassFish Server Name: (optional) "next"

Server location

Installation location: C: \ java_ee_sdk-8 \ glassfish5 (* Specify the location of GlassFish 5 (JavaEE8) that you placed earlier) ● Local domain Check the license agreement by reading the check box of "next"

Domain location

Domain: domain1 (default) Host: localhost (check loopback) DAS port: 4848 HTTP port: 8080

The environment for Java EE 8 / GlassFish 5 is now ready. The figure below shows that the server type can be read properly.

javaee8_img005_netbean_servertype.png


By the way, even in the latest version of Eclipse (currently Oxgen), server settings are only allowed up to GlassFish 3.x or 4.x. Prepare an embedded environment etc. separately and test it.

javaee8_img004_eclipse_err._3.png

Next time to create a sample program

Set the location to C: \ java_ee_sdk-8 \ glassfish5 and write the location of the sample, tutorial and API specifications.

Sample program

sample C:\java_ee_sdk-8\glassfish5\samples On the net, on github here It is being added more and more.

tutorial

The tutorial is C:\java_ee_sdk-8\glassfish5\docs\javaee-tutorial\doc I wonder if here is fine on the net. .. ..

API reference (API specification)

API documentation C:\java_ee_sdk-8\glassfish5\docs\api\javaee-full On the net, here (API)

Next time, I will try to create a project.

Recommended Posts

Java EE 8 (using NetBeans IDE 8.2) starting from sample code Part 1 Environment construction
Sample code using Minio from Java
Getting Started with Java Starting from 0 Part 1
Jekyll super introduction starting from 0 # 1 --Environment construction
Scala starting from scratch (environment construction mac)
[Java] Environment construction
Java sample code 02
Java sample code 03
Road to Java Engineer Part1 Introduction & Environment Construction
Java environment construction
Java sample code 04
Java sample code 01
JavaFX application development with IntelliJ IDEA and Gradle ~ From environment construction to sample code ~
[LeJOS] Let's program mindstorm-EV3 in Java [Environment construction part 2]
Build VS Code + WSL + Java + Gradle environment from scratch
[Mac] VS Code development environment construction (Java, Gradle, Node.js)
[Environment construction] Build a Java development environment with VS Code!
java development environment construction
Java web application development environment construction with VS Code (struts2)
AWS Elastic Beanstalk # 1 with Java starting from scratch-Building a Java web application environment using the EB CLI-
Java parallelization code sample collection
Enable Java EE with NetBeans 9
Java, instance starting from beginner
JavaFX environment construction in Java 13
AtCoder Challenge Environment Construction (Java 8)
Java starting from beginner, inheritance
Java life starting from scratch
Using Docker from Java Gradle