Lesson 2
This commit is contained in:
parent
278da55431
commit
d1d266096b
1 changed files with 26 additions and 0 deletions
|
@ -74,3 +74,29 @@
|
|||
: ${DEV_HOME}/source/java/org/gibiris/javaBootcampNoEclipse/MyHelloWorldServlet.class
|
||||
If this is the case, move on to lesson 2:
|
||||
: git checkout lesson-2
|
||||
|
||||
** Lesson 2 -- build the jar file
|
||||
|
||||
*** Starting point
|
||||
A clean git working area with two additional class files
|
||||
|
||||
*** Goal
|
||||
Class files archived into a jar file
|
||||
|
||||
*** Steps
|
||||
1. Decide whether you want to include the source (=*.java=) files
|
||||
in the jar file
|
||||
2. Determine other files to be included in the jar file
|
||||
(e.g. config files, property files, etc.)
|
||||
3. Change to the top-level of the package in the source:
|
||||
: cd ${DEV_HOME}/source/java
|
||||
Create the =lib/= directory to take the jar file:
|
||||
: mkdir -pv ../lib
|
||||
If you're *not* including the source files in the jar:
|
||||
: jar cvf ../lib/javaBootcampNoEclipse.jar org/gibiris/javaBootcampNoEclipse/*.class
|
||||
If you *are* including the source files in the jar:
|
||||
: jar cvf ../lib/javaBootcampNoEclipse.jar org/gibiris/javaBootcampNoEclipse/*
|
||||
4. If the successful, you will now have a new file:
|
||||
: ${DEV_HOME}/source/lib/javaBootcampNoEclipse.jar
|
||||
If this is the case, move on to lesson 3:
|
||||
: git checkout lesson-3
|
||||
|
|
Loading…
Reference in a new issue