title: How to install java on Suse?
body: <p>I'm trying to install java (jre 1.8) on <strong>Linux Suse</strong>,</p>
  
  <p>I've downloaded the tar.gz file from oracle website and unzipped it.</p>
  
  <p>Now I have java on my machine but I can only run it like that:</p>
  
  <pre><code>./java -version
  java version "1.8.0_91"
  Java(TM) SE Runtime Environment (build 1.8.0_91-b14)
  Java HotSpot(TM) 64-Bit Server VM (build 25.91-b14, mixed mode)
  </code></pre>
  
  <p>running the command by itself doesn't work:</p>
  
  <pre><code>/usr/java/jdk1.8.0_91/bin # java -version
  If 'java' is not a typo you can run the following command to lookup the package that contains the binary:
      command-not-found java
  -bash: java: command not found
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/zSyo4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zSyo4.png" alt="enter image description here"></a></p>
  
  <p>So obviously I can't add to the PATH because it will not be recognized.</p>
  
  <p>Does anyone know what am I missing?</p>