Java JDK
Make sure jdk1.6.0_b45 is install in “c:\SportLogic.Java\jdk1.6.0_45”.
Download here if not already installed: https://s3-ap-southeast-2.amazonaws.com/sportlogic/java/jdk-6u45-windows-x64.exe
Also install Java 8 JDK (download from Oracle) e.g. JDK1.8.0_191. Install in c:\SportLogic.Java\jdk1.8.0_191.
Add “JAVA_HOME” to environment variable (Control Panel > System > Advanced Settings”. Point to “c:\SportLogic.Java\jdk1.8.0_191”.
Eclipse Install
Install Eclipse IDE for Java EE Developers e.g. Oxygen (note Oxygen requires Java 8 to run). More info on different versions of Eclipse here.
Follow this article to setup -vm option in “eclipse.ini”.
https://www.eclipse.org/downloads/packages/release/oxygen/3a/eclipse-ide-java-ee-developers
Go to Preferences > Java > Installed JREs
Add a new JRE by pointing to c:\SportLogic.Java\jdk1.6.0_45
Make sure this is a JDK not a JRE.
Also JRE 8 can be used but just make sure it is JDK not JRE.
Git Clone
Git clone “https://bitbucket.org/sl_main/tms.git” to a local directory. You may use “SourceTree” software to do this.
Eclipse Project
Create a new Eclipse project based on the cloned directory.
Open project properties window. Make the following changes:
- Java Compiler. Enable project specific settings to change compiler compliance level to 1.6.
- Java Build Path > Libraries. Make sure JRE is 1.6. If not then Add Library > JRE System Library. Then select 1.6 JRE.
Open “build.xml” in Ant view.
Perform Ant Task “update-eclipse-classpath-file” to update Eclipse’s .classpath file. Right click project to “Refresh”.
Ensure that Ant uses the same JRE as the workspace:
Ant build file -> Run -> External Tool Config
Jre -> Run same jre as workspace
Perform following Ant tasks:
- update-license-to-hosted-edition-localhost-test
- build-db
- clean-build
- encrypt-security-file
Run dbserver
Class “DatabaseServer”
Run desktop app
Class “TennisApp”
Set “-DDeveloper=true” JVM parameter to run in Developer Mode.
Maven
Install Maven v3.2.5. Download and unzip to “c:\apache-maven-3.2.5”.
https://archive.apache.org/dist/maven/maven-3/3.2.5/binaries/
Add “M2_HOME” to environment variable. Point to “c:\apache-maven-3.2.5”.
Create the following file “c:/users/<username>/.m2/settings.xml”. Enter the username and password (of maven account). This is required to pick up from sportlogic’s remote repository.
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>nexus.read</id>
<username>......</username>
<password>......</password>
</server>
</servers>
</settings>
Now add Maven installation for eclipse to use:
Windows -> Preference->Maven->installation
Add -> add the directory “c:\apache-maven-3.2.5” and use it.