title: How to set JDK_HOME
body: <p>I try to work with the snappy module in python using conda as a virtuelenv. I have in Linux Mint 18 Sarah.</p>
  
  <p>I have the module <code>snappy</code>, but if i try to test it with the following code: <code>from snappy import ProductIO</code> I got the following response: </p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "/home/mara/.snap/snap-python/snappy/__init__.py", line 61, in &lt;module&gt;
      import jpyutil
  ImportError: No module named 'jpyutil'
  </code></pre>
  
  <p>Thus, I tried to get jdk with <code>pip install -i https://pypi.anaconda.org/pypi/simple jpy</code> . And i got: <code>Error: Environment variable "JDK_HOME" must be set to a JDK (&gt;= v1.6) installation directory</code></p>
  
  <p>Thus, I installed <code>jdk1.8.0_111</code>. I used this instruction: <a href="https://community.linuxmint.com/tutorial/view/1372" rel="noreferrer">https://community.linuxmint.com/tutorial/view/1372</a>. But I don't know how to set the JDK_HOME variable in a correct way. I tried it using an instruction for JAVA_HOME (<a href="https://askubuntu.com/questions/175514/how-to-set-java-home-for-java">https://askubuntu.com/questions/175514/how-to-set-java-home-for-java</a>) and write <code>JDK_HOME="/opt/java/jdk1.8.0_111"</code> in the environment file but it doesn't work. I got the same Error like before changing the environment file.</p>
  
  <p>Hope somebody can help me.</p>