commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r1297291 - /commons/proper/net/trunk/src/site/xdoc/index.xml
Date Mon, 05 Mar 2012 23:55:52 GMT
Author: sebb
Date: Mon Mar  5 23:55:52 2012
New Revision: 1297291

New example invocation method


Modified: commons/proper/net/trunk/src/site/xdoc/index.xml
--- commons/proper/net/trunk/src/site/xdoc/index.xml (original)
+++ commons/proper/net/trunk/src/site/xdoc/index.xml Mon Mar  5 23:55:52 2012
@@ -80,9 +80,14 @@
            Commons NET includes several working sample applications that you can use.
            Source files are included in the source (and binary) archives, and a compiled
jar is provided.
-           To use one of the sample applications, ensure that you have both the examples
and main jars on the classpath.
-           For example:
-           <pre>java -cp commons-net-examples-3.1.jar;commons-net-3.1.jar examples/ftp/FTPClientExample</pre>
+           To use one of the sample applications, ensure that the example and main jars are
both in the same directory.
+           Then run the class as per the following example:
+           <pre>java -jar [path/]commons-net-examples-3.1.jar FTPClientExample [parameters]</pre>
+           This uses the helper application which supports shorthand class names.
+           <br/>
+           Alternatively, ensure that the example and main jars are on the classpath.
+           Then invoke the class directly, for example:
+           <pre>java -cp commons-net-examples-3.1.jar;commons-net-3.1.jar examples/ftp/FTPClientExample
        <subsection name="FTP (package: examples/ftp)">

View raw message