Installing JZMQ cannot find javah and jar

This is the step by step for installing JZMQ. 

git clone git://github.com/zeromq/jzmq.git

cd jzmq/
./autogen.sh
./configure

make

sudo make install

while i run ./configure I face several error log like this 

checking for javac… javac
checking for javah… no
configure: error: cannot find javah

here is the solution step :

  1. edit file ~/.bashrc
  2. add the following line, then run this command –>  source ~/.bashrc to update your bashrc configuration

export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_21
export JAVAH=/usr/lib/jvm/jdk1.7.0_21/bin/javah

export JAR=/usr/lib/jvm/jdk1.7.0_21/bin/jar

note : change the java path with your current java installation directory path

then continue running the installation step

  • ./configure
  • make
  • sudo make install
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s