| Java EE 7 SDK |
The sample applications depend on the following software:
Due to these dependencies, you must perform some one-time setup tasks before building and running the individual samples.
Note: In the following instructions, <javee.home>
refers to the directory where the Java EE SDK is installed; for example,
C:\glassfish4.
Refer to the Maven documentation page for information on configuring and using Maven. For example, you may have to specify a proxy server if your network environment requires it.
After performing the one-time setup tasks, you can build and run a sample application as follows:
bin directory to your
PATH environment variable. For example:
set PATH=C:\Program Files\Java\jdk1.7.0_21\bin;%PATH%
bin directory to your PATH
environment variable. For example:
set PATH=C:\Program Files\apache-maven-3.0.5\bin;%PATH%
compile - compiles the sample application.install - packages the archive and installs it in the local Maven repository.verify - verifies that the package is valid.cargo:run -Dglassfish.home=<gf_install_dir> - runs the application
using the application server in the SDK.clean - deletes the compilation artifacts.To specify the installation directory of the Glassfish server,
use the -Dglassfish.home=<gf_install_dir> option with the cargo:run
goal.
You can open the sample applications as projects in the NetBeans IDE. To do so, follow these steps after downloading and installing NetBeans from the NetBeans Download page:
netbeans_jdkhome property in the
<netbeans.home>\etc\netbeans.conf file.
<javaee.home>\glassfish\samples\javaee7 directory and then to the appropriate sample project.docs/index.html file for any special prerequisites or build instructions.Copyright © 1997-2013 Oracle and/or its affiliates. All rights reserved.