blob: 9f03ba7f12afd7e6da21a7350a93d4dccf19428b [file] [log] [blame]
Todd Lipcon4abfb282010-09-28 00:01:31 +00001Steps for Java tutorial
2==================================================
3
41) Make sure thrift is compiled, both the compiler and the Java library. You should
5be able to verify the following:
6
Jake Farrell9623fc52011-07-25 13:22:14 +00007thrift/tutorial/java$ file ../../lib/java/build/libthrift-${version}-${release}.jar
Todd Lipcon4abfb282010-09-28 00:01:31 +00008../../lib/java/libthrift.jar: Zip archive data, at least v1.0 to extract
9
10thrift/tutorial/java$ file ../../compiler/cpp/thrift
11../../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
12
13thrift/tutorial/java$ ls ../../lib/java/build/ivy/lib/
14commons-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
15
16
172) Generate code for java:
18
19thrift/tutorial/java$ cd ..
20thrift/tutorial$ thrift -r -gen java tutorial.thrift
21
223) Compile example
23
24thrift/tutorial/java$ ant
25
264) Run example:
27
28thrift/tutorial/java$ ./JavaServer &
29thrift/tutorial/java$ ./JavaClient