thrift/tutorial/java
Jake Farrell 9623fc5476 updating java tutorial readme
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1150692 13f79535-47bb-0310-9956-ffa450edef68
2011-07-25 13:22:14 +00:00
..
src THRIFT-1084 Typo fixes 2011-03-04 13:35:05 +00:00
build.xml THRIFT-1133 Java and JavaScript tutorial is broken since we have Java maven deployment 2011-04-08 21:28:50 +00:00
JavaClient THRIFT-1133 Java and JavaScript tutorial is broken since we have Java maven deployment 2011-04-08 21:28:50 +00:00
JavaServer THRIFT-1133 Java and JavaScript tutorial is broken since we have Java maven deployment 2011-04-08 21:28:50 +00:00
README updating java tutorial readme 2011-07-25 13:22:14 +00:00

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/build/libthrift-${version}-${release}.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