Made by Team55 Advisor: Prof. Homayoun Yousefi'zadeh
Prerequement:
To simulate the website, below are required:
Java JDK 1.7 Can be downloaded from webite: http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase7-521261.html
IntelliJ [Ultimate] Edition, which is cross platform IDEA and could be used in Windows, Mac, Linux system Can be acquired using student account and download at: https://www.jetbrains.com/idea/
JBoss Environment 7.1.1 Can be downloaded from website: http://jbossas.jboss.org/downloads/
Usage:
With above preparation done, simulate the website with following steps:
Open IntelliJ IDEA, Click "Import Project".
Choose the Project folder you've saved to, click "OK". below is the example location that I used.
Choose Maven, click "next"
Check the box in front of "Import Maven projects automatically"
Click "next"
Click the "+" bottom, choose "JDK"
Choose the jdk 1.7 file folder you saved to. below is the example location of my jdk 1.7.0_80
Click "OK"
Click "finish"
On the top right corner, click the second icon, press "Edit Configurations"
Click the "+" bottom, choose JBoss Server - Local. Note that if you are using Community version of IntelliJ, you won't have this option. So make sure you are using the Ultimate version.
To Run MachineLearning, add VM Option in IntelliJ.
In Build Config, click the highlighted icon, as shown:
Copy and paste VM Option, click "OK"
-Xms1g -Xmx1g -XX:MaxPermSize=2g -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -XX:-UseSplitVerifier
now you should be able to run Machine Learning algorithm.
This should be the window you see after previous step. Click "Deployment", and click the "+" bottom on the right, choose "Artifact..."
Choose "SeniorProject:war", click "OK"
Click "OK"
At the top right corner of the main window, click the left most icon to build your project. Then click the third bottom which looks like a green play bottom, and wait for just a sec IntelliJ should be opening your website for you automatically. Shown below is the opened demo version of our project.
To run our Project in JBoss Environment, first we need to add 2 .jar files as lib in IntelliJ. Following below steps to set up lib.
in IntelliJ top left corner, File - Project Structure
go to Libraries - click "+" - Java
Choose the Obfuscation .jar file, it's located in: {Project root location}/src/main/webapp/WEB-INF/lib Click "OK"
Click "OK" to add this library as module
do the same for mysql-connector-java-5.1.40.jar, located at the same location.
now it should be all done. Check Libraries we can see a new 3rd party lib "obfuscation" and "mysql-connector-java-5.1.40" are added
Check Modules, a new "obfuscation" and jdbc module is added.
Now we should be able to run the project in JBoss Environment. Click the run bottom, project will be built and IntelliJ will automatically open the website for us: Shown is the first page you will see using our website, it's a log-in windows. Authentication prevents use of website without login. Now create your account and start explore our project website!
The sample input file for our Machine Learning algorithm is located at: src\main\webapp\WEB-INF\lib
deeplearning4j:https://deeplearning4j.org/