THRIFT-890. java: Fix tutorial to build and run in trunk
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1001856 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tutorial/java/JavaClient b/tutorial/java/JavaClient
index 68d87b8..77b6a05 100755
--- a/tutorial/java/JavaClient
+++ b/tutorial/java/JavaClient
@@ -18,5 +18,8 @@
# specific language governing permissions and limitations
# under the License.
#
+THIS_DIR=$(dirname $0)
+LIB_DIR=$THIS_DIR/../../lib/java/
+IVY_DIR=$LIB_DIR/build/ivy/lib/
-java -cp tutorial.jar:/usr/local/lib/libthrift.jar JavaClient
+java -cp $IVY_DIR/*:$LIB_DIR/libthrift.jar:tutorial.jar JavaClient