Loading the tkStrikeGen2 H2 DB with proper information
The structure of tkStrikeDBGen2
package is like this:
├── CreateSQL
│ ├── README.md
│ ├── Subcategory
│ │ ├── CADET
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── CADET MIN
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── DRAGON
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── GEN1 COLOR CADET
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── GEN1 COLOR JUNIOR
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── GEN1 COLOR SENIOR
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── GEN1 KIDS 4-5
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── GEN1 KIDS 6-7
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── GEN1 KIDS 8-9
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── JUNIOR
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── JUNIOR MIN
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── NEW CADET
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── OLYMPIC
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── PARA K41
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── PARA K44
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── SENIOR
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── SENIOR MIN
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── TIGER
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ ├── ULTRA
│ │ │ ├── FEMALE.txt
│ │ │ └── MALE.txt
│ │ └── YOUTH
│ │ ├── FEMALE.txt
│ │ └── MALE.txt
│ ├── app.js
│ ├── gap.txt
│ ├── order.txt
│ └── package.json
├── Import Thresholds Gen 2
│ ├── Default_Category_Thresholds.sql
│ ├── Default_Gap.sql
│ ├── Mac.jar
│ ├── ReplaceDB.jar
│ ├── Subcategory.sql
│ ├── Windows.jar
│ ├── default.bat
│ └── default.sh
├── LICENSE
├── Makefile
├── Manifest.txt
├── README.md
└── ReplaceDB
├── Mac.class
├── Mac.java
├── Main.class
├── Main.java
├── Windows.class
└── Windows.java
To easily compile and test run the jar file using the makefile, execute the following command:
make
This generates all the necesary assests and places them in the proper directory.
For compile the main class for package, execute the follow command:
javac ReplaceDB/Main.java
This generate the Main.class
, Mac.class
, and Windows.class
files into ReplaceDB
directory.
For run the main class for package, execute the follow command:
java -cp . ReplaceDB.Main
java -cp . ReplaceDB.Mac
java -cp . ReplaceDB.Windows
Pack the main class for package as a JAR file, execute the follow command:
jar cfme Import\ Thresholds\ Gen\ 2/ReplaceDB.jar Manifest.txt ReplaceDB.Main ReplaceDB/Main.class
jar cfme Import\ Thresholds\ Gen\ 2/Mac.jar Manifest.txt ReplaceDB.Mac ReplaceDB/Mac.class
jar cfme Import\ Thresholds\ Gen\ 2/Windows.jar Manifest.txt ReplaceDB.Windows ReplaceDB/Windows.class
Run the JAR file packed, execute the follow command:
java -jar ReplaceDB.jar
java -jar Windows.jar
Run the JS file by be located in the proper directory folder and executing the following command:
node app.js
Requires having Java installed on the system, the minimum requirement is Java 8 since it is packaged for released with Java 8 in mind.
You can download Java 8 from the Java website: Java Download.
Requires Node to be installed on the system, the minimum requirement is NodeJS v14.16 since that is what the javascript file is written with in mind.
You can download the latest version of NodeJS from the Node website: NodeJS Download.