Installation Steps
Programs
Step 1. Oracle
-
Extract the zip file and install from the uncompressed oracle11.2.0.4 folder. Execute
setup.exe inside oracle_g_11_2_0_4\p13390677_112040_MSWIN-x86-64_1of7\database
folder.
Oracle installation parameters:
o Configure security updates:
Unselect the check field and dont select an electronic address.
o Download security updates:
Ignore software updates
o System Type:
Server Type
o Database edition:
Standard Edition
o Configuration options:
At Character set tab, select Use Unicode (AL32UTF8)
o The password must be CCLAS for all users.
o Configuration Type:
Advanced configuration
Step 2. Java
JDK version must be 1.6.45.
-
Install from jdk-6u45-windows-x64.exe.
Create an environment variable and name it JAVA_HOME. It will contain the path to the
folder of the installed JDK, this way:
C:\Program Files\Java\jdk1.6.0_45
Step 3. IntelliJ
-
Install from ideaIC-14.1.5.exe.
Add Database Navigator plugin from File -> Settings Then click on Browse repositories
and wait the list to load.
Change the path of IntelliJ shortcut on the desktop to end with idea64.exe instead of
idea.exe.
Step 4. JBoss
-
Copy G6BU.DMP into the C:\app\{USER_NAME}\admin\orcl/dpdump/ directory.
Copy to C drive:
o G6Deploy folder.
o var folder (it is inside EFGS).
o G6DB.CMD
o G6DB.SQL
o G6DBDel.SQL
Edit G6DB.SQL file updating the paths of the oracle directory.
Create a folder with the name cclas at C:\app\{USER_NAME} \oradata\orcl\
Execute G6DB.CMD to create the database objects.
Create a shortcut at the Desktop to C:\G6Deploy\cclas-jboss\bin\standalone.bat and name it
Startup G6.
Deploy the application (double click the shortcut).
Go to http://localhost:8080/ria/ui.html. Youll need a user with the roles:
o SYSTEM ADMINISTRATOR
o LABADMIN to the assigned labs
Step 5. Groovy
-
Install from groovy-1.8.6-installer.exe.
Step 6. Gradle
-
Unzip gradle-2.3-all.zip under C:\Program Files (x86)\ so your path will be like: C:\Program
Files (x86)\gradle-2.3
Step 7. Git
-
Unzip and then install GitExtensions246SetupComplete.zip. This will install:
o Git
o Git GUI
o Git Extensions
Application Code
Step 8. Application code
1. Access Git GUI and go to Help-> Show SSH Key and press Generate Key.
This will create the next files in your local C:\Users\{USER_NAME}\.ssh\ folder:
a. id_rsa.ppk. This is your private key.
b. id_rsa.pub. This is your public key.
Press Copy to Clipboard.
2. Access to GitLab and there go to Profile Settings -> SSH Keys. Press Add SSH Key, then
paste the key you have in the clipboard to the field Key, and press Add Key. The key is
added and the Title is filled automatically.
3. In order to use your key with Git Extensions you must convert it to SSH2. To perform this we
have to open puttygen, and select Conversions -> Import key.
In the popup you have to select id_rsa.ppk in your .ssh folder. Make sure it is selected
SSH-2 RSA as the type of key, then press Save private key and give it a name (i.e.
id_rsaGitExtensions.ppk ). It will ask you if you want to create the key with a passphrase, put
one if you want (remember it or write it down) and then save the file.
4. Open IntelliJ and close the project if you have one open. Then the welcome popup will prompt
and it will display the option Check out from Version Control. Click that option and select Git.
In the Clone Repository window put the next parameters:
Git Repository URL is the SSH string you can get from GitLab going to Projects ->
APP_G6/development.
Press Test to make sure that the connection is correct, and then press Clone.
5. When the clone finishes you will have a copy of the project in IntelliJ. Check that you can
synchronize with repository inside IntelliJ by right-clicking the project and then selecting Git ->
Repository -> Pull. In the Pull changes window select the branch development/develop.
To complete IntelliJ setup you must do the following:
a. Copy all jar files inside lib into your projects lib folder.
b. Right click on the project name and click on Module Settings.
i. In Global libraries add a new Java library called groovy pointing to
C:\Program Files (x86)\Groovy\Groovy-1.8.6\lib. When you accept select all
the modules.
ii. In Global libraries add a new Java global library one called lib pointing to the
lib folder inside the project. When you accept select all the modules.
iii. In libraries add a new Java library one called G6Jars pointing to the G6Jars
folder inside the project. When you accept select all the modules
c.
Make sure your standalone.conf.bat file in C:\G6Deploy\cclas-jboss\bin has the
next options with their values:
set "JAVA_OPTS=%JAVA_OPTS% -Dcustom.root=C:/G6Development/development"
set "JAVA_OPTS=%JAVA_OPTS% Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=false"
set "JAVA_OPTS=%JAVA_OPTS% Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=
false"
set "JAVA_OPTS=%JAVA_OPTS% Dcom.sun.xml.ws.transport.http.HttpAdapter.dump=false"
set "JAVA_OPTS=%JAVA_OPTS% Dcom.sun.xml.internal.ws.transport.http.HttpAdapter.dump=false"
d. Go to Run -> Edit Configurations then create a new Run configuration of type
Remote and name it JBOSS. Select Shared memory option on the right panel.
Now you can launch the JBoss server from the Desktop shortcut and debug the new JBOSS
run configuration by clicking on the Debug icon in IntelliJ.
6. Open a new window in C:\G6Development\development and right click on it, then click Git
Extensions -> Pull.
In the Pull window press Manage Remotes and another window will open. In the PuTTY
SSH area open the file picker and select the private key we created by converting the original
one (id_rsaGitExtensions.ppk in our example).
After you have selected the file you must load it by pressing Load SSH Key button (it will ask
you for the passphrase if you created the key with it) and then Try Connection. This should
open a cmd window with the message Welcome to GitLab, {USER_NAME}!. If this happens
you are ready to Save and Close Remote repositories window and then press Pull in the
Pull window.
At this point you have the application code and have done all the configurations for Git and
IntelliJ.
Updating G6 version
If you want to update your local version of G6 core you have to follow the next steps:
1. Take the EAR file of the new version and place it in your "C:\G6Deploy\cclasjboss\standalone\deployments" folder.
2. Unzip the EAR file into "C:\G6Deploy\cclas-jboss\ExplodedEar".
3. Paste the Oracle driver ("ojdbc6-11.2.0.3.0.jar") inside "C:\G6Deploy\cclasjboss\ExplodedEar\lib" folder.
4. Execute deploy.BAT which updates the database and makes the xcopy of the libraries. You
can review the execution of the batch opening the deploy.log file created inside
ExplodedEar folder.