Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

 Image Modified 

You should your current directory printed:

 Image Modified 

CD into the tutorial-src folder.

 Image RemovedImage Added 

Do pwd again to confirm you are in the right folder:

 Image Modified 

Info
You can use the LS command to list the content of the current directory.

 Image Modified 

 Image Modified 

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

     Image Modified 

You can tell if the script has finished executed or not from whether the '$' sign has appeared, like so:

     Image Modified     

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.

...