Build Latest Stable Release of Classifai
Users can choose to build Classifai straight from the source repository for scenarios such as 1. Installer available currently does not support the respective operating system 2. Get the latest development of Classifai Tool. There are three main steps to be performed:
Install Java JDK 14 (Classifai runs on JDK 14)
Clone / Download the Classifai repository
Build Classifai
Below are the guidelines for users to build the Classifai tool from the source code.
Install Java JDK 14
1.0 Install JDK 14
Step 1: Before downloading Classifai from Github, users are required to install JDK 14. Go to Oracle Official Website and find the JDK 14 versions installer. Register an account and sign in to download the JDK 14.
Choose installer file accordingly to the operating system.
Step 2: After the file is downloaded, install the JDK 14 installer. For Centos open the terminal and install JDK with command:
For Ubuntu Linux, use
For Window, use the downloaded installer
Step 3: To verify if installation is success, open a new window of terminal/command prompt and type the following command
If the terminal/command prompt shows the java version, as shown in the figure below, then it means users have installed java successfully.
For Windows users, there are a few more steps to configure the path if the java version does not show out.
Go to Windows Start and types Environment. Click Edit the Environment Variable.
Click Environment Variables and find System Variable.
If can't find the Variable Name JAVA_HOME, click New and create a new variable. Set Variable name as JAVA_HOME and set variable value as JDK version path. For example: C:\Program Files\Java\jdk-14.0.2 Note: Do not include the bin directory as the path for the variable value.
After that, find the variable named Path and click edit. Go to New and add a new variable path as name as %JAVA_HOME%\bin.
Click OK and restart the command prompt. Check again if successfully configured with the command below:
2.0 Clone / Download the Classifai Repository
Step 4: Now, it's time to download the latest Classifai release version from here. Download the zip file. Alternatively, use the following command if you are familiar with git commands.
Extract the zip file and you are ready to build the Classifai Uber Jar file.
3.0 Build Classifai
Step 5: Now, open the terminal/command prompt and navigate to the Classifai folder.
Linux (Centos, Ubuntu), Mac
For Linux users, switch to the root account to prevent any permission problem. Build Classifai using the command below:
Window
Use the command below
Successful running of the script file resulted in the the building of Uber Jar file.
Proceed to the next subsection to see the instructions on how to run the Jar file.
pageRun Classifai from Uber JarLast updated