Compiling
Compilation is going to be slightly different compared to our previous tutorial examples due to our deep directory structure. Mac/Linux users won’t have to make much of an adjustment, but, for Windows users, we have to start using the Command Prompt.
For Mac/Linux users, just open your terminal to the ‘OOP’ code folder and enter the following command:
$ js++ src/ -o build/app.jspp.js
For Windows users, open the Command Prompt. Navigate to the directory of the OOP ‘code’ folder (using the ‘cd’ command). Once we navigate to the folder, we enter the same command as the Mac/Linux users:
> js++ src/ -o build/app.jspp.js
If everything worked, you should see a green “OK” as shown in the screenshot above (for all operating systems: Windows, Mac, and Linux).
Open index.html (in the root ‘OOP’ folder) in your web browser. You should see a small cat icon rendered to the page: