Completing Lesson 5

This commit is contained in:
Éibhear Ó hAnluain 2017-08-12 22:10:40 +01:00
parent 7d7cd91495
commit 62a72431ad

View file

@ -164,7 +164,7 @@
*** Starting point *** Starting point
A clean working brought up to date to include the two new files: A clean working brought up to date to include the two new files:
=${DEV_HOME}/source/java/org/gibiris/javaBootcampNoEclipse/AstroFun.java= =${DEV_HOME}/source/java/org/gibiris/javaBootcampNoEclipse/Astro/AstroFun.java=
and =${DEV_HOME}/source/lib/AstroLib-1.1.5ws.jar=, and an update and =${DEV_HOME}/source/lib/AstroLib-1.1.5ws.jar=, and an update
to to
=${DEV_HOME}/source/java/org/gibiris/javaBootcampNoEclipse/MyHelloWorldServlet.java=. =${DEV_HOME}/source/java/org/gibiris/javaBootcampNoEclipse/MyHelloWorldServlet.java=.
@ -179,13 +179,17 @@
+ =CLASSPATH= contains =tomcat8-servlet-api.jar= + =CLASSPATH= contains =tomcat8-servlet-api.jar=
- Clean out the working area if there are unnecessary/unwanted files: - Clean out the working area if there are unnecessary/unwanted files:
: rm -vf ${DEV_HOME}/source/java/org/gibiris/javaBootcampNoEclipse/*.class : rm -vf ${DEV_HOME}/source/java/org/gibiris/javaBootcampNoEclipse/*.class
: rm -vf ${DEV_HOME}/source/java/org/gibiris/javaBootcampNoEclipse/Astro/*.class
: rm -vf ${DEV_HOME}/source/lib/javaBootcampNoEclipse.?ar : rm -vf ${DEV_HOME}/source/lib/javaBootcampNoEclipse.?ar
: rm -vfr ${DEV_HOME}/webapp : rm -vfr ${DEV_HOME}/webapp
- Review the changes that have been applied to the working area - Review the changes that have been applied to the working area
1. Compile the java files (including the new java file) as per 1. Compile the java files (including the new java file) as per
Lesson 1. Lesson 1.
Does it compile? If not, why. Two hints: Does it compile? If not, why. Three hints:
- there was a new sub-package added,
=org.gibiris.javaBootcampNoEclipse.Astro=, which your java
compiler needs to be able to find.
- there was a new jar file introduced to the repository - there was a new jar file introduced to the repository
- there's a bug in the package specification in the new java - there's a bug in the package specification in the new java
file. Looking closely at the branches of this git repository, file. Looking closely at the branches of this git repository,