Installation and Configuration - Adnan-Sivro/NWT2015-Tim9 GitHub Wiki

Glassfish and Java EE

  1. 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"
  1. Download Glassfish from: Glassfish 4.1 and extract it
  • extract glassfish to "C:\Java" folder, path should be "C:\Java\glassfish4" after extraction
  1. 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
  2. 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
  1. Download the following Glassfish configuration file domain.xml and place it in: "C:\Java\glassfish4\glassfish\domains\domain1\config", overwrite the existing file

MySql

  1. Download MySql
  2. Install MySql
  • Choose Developer Default Setup Type, click Next whenever you can and click Execute at the end
  • During server configuration set a password on root, dont leave it empty

Maven

  1. Download Maven
  2. Extract Maven to the "C:\Java" folder
  3. Setting up Maven:
  • 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: M2_HOME
    • Variable value: C:\Java\apache-maven-3.2.5
  • under User Variables click on New and enter the following:
    • Variable name: M2
    • Variable value: %M2_HOME%\bin
  • under User Variables click on New and enter the following:
    • Variable name: Path
    • Variable value: %M2%

NodeJS and Angular JS

  1. Download NodeJS and install it
  2. Download AngularJS minified and zip version
  3. Create a new folder for AngularJS, copy the minified version in it and extract the zip version as well

IntelliJ

  1. Download IntelliJ
  2. Install it to any folder
  3. Maven should be configured automatically with IntelliJ if the M2_HOME variable was set correctly
  4. To install NodeJS and AngularJS plugins go to Settings > Plugins > Browse Repository
  • search for NodeJS and install the plugin
  • search for AngularJS and install the plugin
  1. To enable AngularJS libraries follow this guide