title: How to fix no javabridge no module error? how to find and set jdk path?
body: <p>I am trying to install javabridge to my rental server using ssh.
  Python, jdk (app-engine-java ), numpy, pandas, python-weka-wrapper are installed but
  Pip install javabridge 
  gives me errors.</p>
  
  <p>I tried to set up the path
  but the installation still error.</p>
  
  <p>pip install javabridge</p>
  
  <blockquote>
    <p>DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. 
    Please upgrade your Python as Python 2.7 won't be maintained after that date. > A future version of pip will drop support for Python 2.7.
    Collecting javabridge
      Using cached <a href="https://files.pythonhosted.org/packages/a6/a0/c59bccabed99b1d4ac68166c59c679b375bfca75b78688b52c541b711578/javabridge-1.0.18.tar.gz" rel="nofollow noreferrer">https://files.pythonhosted.org/packages/a6/a0/c59bccabed99b1d4ac68166c59c679b375bfca75b78688b52c541b711578/javabridge-1.0.18.tar.gz</a></p>
  
  <pre><code>ERROR: Complete output from command python setup.py egg_info:
       ERROR: Traceback (most recent call last):
   File "&lt;string&gt;", line 1, in &lt;module&gt;
   File "/tmp/pip-install-RqqZMr/javabridge/setup.py", line 402, in 
  &lt;module&gt;
     ext_modules=ext_modules(),
  </code></pre>
    
    <p>when I typed
    which java</p>
  
  <pre><code> ~/.linuxbrew/bin/java
  </code></pre>
    
    <p>.bash_profile</p>
  
  <pre><code>  $HOME/.pyenv/bin:$PATH
  # Get the aliases and functions
  if [ -f ~/.bashrc ]; then
          . ~/.bashrc
  fi
  
  # User specific environment and startup programs
  
  PATH=$HOME/.pyenv/bin:$PATH
  
  EXPORT eval "$(pyenv init -)"
  
  export PYTHON_PATH="$PATH:/home/cantik/.linuxbrew/lib/python2.7"
  export JAVA_PATH="/home/cantik/.linuxbrew/bin/java"
  echo ${JAVA_HOME}
  
  export HOMEBREW_TEMP=~/tmp PATH=~/.linuxbrew/bin:$PATH
  
  export LDFLAGS="-L/home/cantik/.linuxbrew/opt/isl@0.18/lib"
  export CPPFLAGS="-I/home/cantik/.linuxbrew/opt/isl@0.18/include"
  ~
  </code></pre>
  </blockquote>
  
  <p>Thanks</p>