Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

thrift building java library ......:no

Tags:

thrift

I install thrift just following the instruction on http://thrift.apache.org/docs/install/centos

After running the ./configure command I got:

Building C++ Library ......... : yes
Building C (GLib) Library .... : no
**Building Java Library ........ : no**
Building C# Library .......... : no
Building Python Library ...... : no
Building Ruby Library ........ : no
Building Haxe Library ........ : no
Building Haskell Library ..... : no
Building Perl Library ........ : no
Building PHP Library ......... : yes
Building Erlang Library ...... : no
Building Go Library .......... : no
Building D Library ........... : no
Building NodeJS Library ...... : no
Building Lua Library ......... : no

C++ Library:
   Build TZlibTransport ...... : yes
   Build TNonblockingServer .. : yes
   Build TQTcpServer (Qt4) .... : no
   Build TQTcpServer (Qt5) .... : no

PHP Library:
   Using php-config .......... : 

I have installed java and ant

[root@localhost thrift]# java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) Server VM (build 25.45-b02, mixed mode)

I don't understand why the 'building java library is no'

like image 380
Eli Xu Avatar asked Mar 05 '26 06:03

Eli Xu


2 Answers

If you have not installed Ant, install it first and run ./configure again.

like image 136
Ken Block Avatar answered Mar 07 '26 03:03

Ken Block


As of Thrift 0.10.0, it expects Ant version 1.7 or newer. However, it doesn't detect Ant 1.10.1 as valid version. I had to downgrade to Ant 1.9.9 to compile Thrift with Java support.

like image 31
Slava Medvediev Avatar answered Mar 07 '26 04:03

Slava Medvediev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!