title: How can I use Java in Google Colab
body: <p>I want to use Stanford CoreNLP in my Google Colab Notebook. For that I need Java. Is there a way to install Java on those machines?</p>
  
  <p>What I currently have is:</p>
  
  <pre><code>!pip install StanfordCoreNLP
  from stanfordcorenlp import StanfordCoreNLP
  nlp = StanfordCoreNLP('stanford-corenlp', lang='de', memory='4g')
  ...
  nlp.close()
  </code></pre>
  
  <p>and I get the error:</p>
  
  <pre><code>FileNotFoundError: [Errno 2] No such file or directory: 'java': 'java'
  </code></pre>