Installation and Configuration - Adnan-Sivro/NWT2015-Tim9 GitHub Wiki
Glassfish and Java EE
Download the newest Java EE: Java EE 8u40 and install it
NOTE: do not install to program files folder as java has problems on windows with path finding if the path includes spaces between words, install both JDK and JRE in "C:\Java" as parent folder, for example: "C:\Java\jdk1.8.0_40" and "C:\Java\jre1.8.0_40"
Download Glassfish from: Glassfish 4.1 and extract it
extract glassfish to "C:\Java" folder, path should be "C:\Java\glassfish4" after extraction
After installing Glassfish and Java we need to make sure that Glassfish is using the proper Java JDK. Go to "C:\Java\glassfish4\glassfish\config" folder and edit asenv.bat with a text editor, add the following line to the bottom of the file: set AS_JAVA=C:\Java\jdk1.8.0_40
Setting up JAVA_HOME variable in windows:
right click on My Computer ans select Properties
under the Advanced tab at the bottom click on Environment Variables
under User Variables click on New and enter the following:
Variable name: JAVA_HOME
Variable value: C:\Java\jdk1.8.0_40
Download the following Glassfish configuration file domain.xml and place it in: "C:\Java\glassfish4\glassfish\domains\domain1\config", overwrite the existing file