db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpendle...@apache.org
Subject svn commit: r881809 - in /db/derby/docs/trunk/src/getstart: twwdactivity3_Setup.dita twwdactivity4.dita
Date Wed, 18 Nov 2009 15:51:25 GMT
Author: bpendleton
Date: Wed Nov 18 15:51:24 2009
New Revision: 881809

URL: http://svn.apache.org/viewvc?rev=881809&view=rev
DERBY-3518: Getting started guide clarifications for compiling Java programs

This change adjusts the descriptions of the Activity 3 and Activity 4
pages with respect to compiling the Java source code. Since there are three
separate Java programs that are provided, and since the WwdUtils class needs
to be compiled as part of each of the other programs, the changes attempt
to make it more obvious which .java files to compile when, and what they do.


Modified: db/derby/docs/trunk/src/getstart/twwdactivity3_Setup.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/getstart/twwdactivity3_Setup.dita?rev=881809&r1=881808&r2=881809&view=diff
--- db/derby/docs/trunk/src/getstart/twwdactivity3_Setup.dita (original)
+++ db/derby/docs/trunk/src/getstart/twwdactivity3_Setup.dita Wed Nov 18 15:51:24 2009
@@ -66,9 +66,15 @@
 at the end of each command so that your current working directory is included
 in the classpath and the files are copied to the correct location. </note></stepxmp>
-<step><cmd>Compile the <codeph>WwdEmbedded.java</codeph> program.</cmd><stepxmp><codeblock><b><userinput>javac
+<step><cmd>Compile the program source files.</cmd>
+    <info> The sample program is contained in two source files:
+        <codeph>WwdEmbedded.java</codeph> and <codeph>WwdUtils.java</codeph>.
+        Issue the following command to compile both at the same time:</info>
+    <stepxmp><codeblock>
+            <b><userinput>javac WwdEmbedded.java WwdUtils.java</userinput></b>
 </codeblock> <note type="important">A command prompt appears if the compilation
-is successful. The binary file <codeph>WwdEmbedded.class</codeph> is created.
+is successful. The binary files <codeph>WwdEmbedded.class</codeph> and
+<codeph>WwdUtils.class</codeph> are created.
 If an error message appears, verify that the JDK is properly installed.</note> </stepxmp>
 <step><cmd>Run the program.</cmd><info>The <xref href="rwwdactivity3.dita#rwwdactivity3"><codeph>WwdEmbedded.java</codeph>
program</xref> populates

Modified: db/derby/docs/trunk/src/getstart/twwdactivity4.dita
URL: http://svn.apache.org/viewvc/db/derby/docs/trunk/src/getstart/twwdactivity4.dita?rev=881809&r1=881808&r2=881809&view=diff
--- db/derby/docs/trunk/src/getstart/twwdactivity4.dita (original)
+++ db/derby/docs/trunk/src/getstart/twwdactivity4.dita Wed Nov 18 15:51:24 2009
@@ -37,6 +37,12 @@
 and experience starting and connecting to the Network Server are helpful.
 You will need to use a text editor to create the <codeph>WwdClient.java</codeph>

+<note>As a convenience, the <codeph>workingwithderby</codeph>
+    directory contains a program <codeph>WwdClientExample.java</codeph>
+    which has already been edited in the appropriate manner. You can use
+    this program directly as it is, or you can compare the contents of this
+    program to the <codeph>WwdClient.java</codeph> program that you will
+    construct in this activity, to see how the changes are made.</note>
 <context>You will create a <ph conref="../conrefs.dita#prod/productshortname"></ph>
 program,  <codeph>WwdClient.java</codeph>, by changing a few lines of the  <codeph>WwdEmbedded.java</codeph>
 You can run the client program in multiple command shells, allowing simultaneous
@@ -94,7 +100,11 @@
 </codeblock> </stepxmp><stepresult>A command prompt appears if the compilation
 is successful. The  binary file <codeph>WwdClient.class</codeph> is created.
 If an error message  appears, modify the line indicated so that it is identical
-to the example. </stepresult></substep>
+to the example. (As noted above, you can compare the contents of your
+<codeph>WwdClient.java</codeph> against the
+<codeph>WwdClientExample.java</codeph> program provided in the
+<codeph>workingwithderby</codeph> directory to verify that your editing was
+performed successfully.) </stepresult></substep>
 <step><cmd>Set up the client/server environment using the following steps:</cmd>

View raw message