Page History
Go to the folder where you extracted the ZIP package. Your source Java files are located under the tutorial-src folder.
Navigate into the tutorial-src folder.
You should see the following files & folders:
- src: this is where your Java files reside
- WEB-INF: this is the deployment unit (binaries & libraries)
- build.sh: this is your build script (to compile your Java files and deploy to Tomcat)
- files.txt: the list of Java source files. If you add new Java files, add the path to this file.
Now go further into src folder, and then tutorials folder you should see your Java source file, Example1.java.
Open the Example1.java file with a text editor.
You can see that the file contains 2 services:
...
| Info |
|---|
| You can check what folder you are currently on using the pwd command. |
You should your current directory printed:
CD into the tutorial-src folder.
Do pwd again to confirm you are in the right folder:
| Info |
|---|
| You can use the LS command to list the content of the current directory. |
Now you are going to launch the build.sh build script, however before you do that, again you have to make sure that the script has its execute permission set.
...
Now run the build.sh script
./build.sh
You can tell if the script has finished executed or not from whether the '$' sign has appeared, like so:
No message is good news, it means your Java source code (Example1.java) has compiled successfully, and deployed to Tomcat. If an error occurred, you should see some error messages displayed.
...








