Java Reference
In-Depth Information
•
example-name
-app-client
: application clients
•
example-name
-ejb
: enterprise bean JAR files
•
example-name
-war
: web applications
The Ant build files (
build.xml
) distributed with the examples contain targets to create
a
build
subdirectory and to copy and compile files into that directory; a
dist
subdir-
ectory, which holds the packaged module file; and a
client-jar
directory, which holds
the retrieved application client JAR.
The
tut-install
/examples/bp-project/
directory contains additional Ant targets
called by the
build.xml
file targets.
For some web examples, an Ant target will open the example URL in a browser if one
is available. This happens automatically on Windows systems. If you are running on a
UNIX system, you may want to modify a line in the
tut-install
/examples/bp-pro-
ject/build.properties
file. Remove the comment character from the line spe-
cifying the
default.browser
property and specify the path to the command that in-
vokes a browser. If you do not make the change, you can open the URL in the browser
yourself.
Getting the Latest Updates to the Tutorial
Check for any updates to the tutorial by using the Update Center included with the Java
EE 6 SDK.
To Update the Tutorial through the Update Center
1. Open the Services tab in NetBeans IDE and expand Servers.
2. Right-click the GlassFish Server instance and select View Update Center to
display the Update Tool.
3. Select Available Updates in the tree to display a list of updated packages.
4. Look for updates to the Java EE 6 Tutorial (javaee-tutorial) package.
5. If there is an updated version of the Tutorial, select Java EE 6 Tutorial
(javaee-tutorial) and click Install.
Debugging Java EE Applications
This section explains how to determine what is causing an error in your application de-
ployment or execution.