title: (Mac) jshell cannot find runtime environment
body: <p>I am trying to use jshell to learn basic Java behavior. When I use terminal to navigate to the directory where jshell is located: </p>
  
  <p><strong>cd /Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home/bin</strong></p>
  
  <p>And then type <strong>jshell</strong> into the command prompt, I get the following error:</p>
  
  <p><strong>Error: Could not find Java SE Runtime Environment.</strong></p>
  
  <p>This is peculiar because java code in my Eclipse IDE (Version: 2019-12 (4.14.0)) compiles and executes just fine on this computer. Also, when I type <strong>java -version</strong> into terminal it yields the following:</p>
  
  <p><strong>java version "11.0.6" 2020-01-14 LTS
  Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)
  Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)</strong></p>
  
  <p>So clearly the runtime environment is installed, but jshell can't access it for some reason. The best I can figure, I need to find where the JRE is installed and then add it to my $PATH, but I've got not clue how to do this. </p>