diff options
author | Todd Lipcon <todd@apache.org> | 2010-09-28 00:01:31 +0000 |
---|---|---|
committer | Todd Lipcon <todd@apache.org> | 2010-09-28 00:01:31 +0000 |
commit | 4abfb288ab76b2291b49e4f9439107c3bcb26d7a (patch) | |
tree | eb98338fdc092abc207f91a2bdf506fbb2dd736d /tutorial/java | |
parent | fcaa8f5364931155ba5675db7a02d898abf07998 (diff) | |
download | thrift-4abfb288ab76b2291b49e4f9439107c3bcb26d7a.tar.gz |
THRIFT-890. java: Add README missing from previous commit
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001970 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tutorial/java')
-rw-r--r-- | tutorial/java/README | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tutorial/java/README b/tutorial/java/README new file mode 100644 index 000000000..c33620c21 --- /dev/null +++ b/tutorial/java/README @@ -0,0 +1,29 @@ +Steps for Java tutorial +================================================== + +1) Make sure thrift is compiled, both the compiler and the Java library. You should +be able to verify the following: + +thrift/tutorial/java$ file ../../lib/java/libthrift.jar +../../lib/java/libthrift.jar: Zip archive data, at least v1.0 to extract + +thrift/tutorial/java$ file ../../compiler/cpp/thrift +../../compiler/cpp/thrift: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, not stripped + +thrift/tutorial/java$ ls ../../lib/java/build/ivy/lib/ +commons-lang-2.5.jar junit-4.4.jar servlet-api-2.5.jar slf4j-api-1.5.8.jar slf4j-simple-1.5.8.jar + + +2) Generate code for java: + +thrift/tutorial/java$ cd .. +thrift/tutorial$ thrift -r -gen java tutorial.thrift + +3) Compile example + +thrift/tutorial/java$ ant + +4) Run example: + +thrift/tutorial/java$ ./JavaServer & +thrift/tutorial/java$ ./JavaClient |