title: Firestore emulator - Error occurred during initialization of VM
body: <p>I learn about Cloud Functions so I read this <a href="https://firebase.google.com/docs/functions/get-started" rel="nofollow noreferrer">https://firebase.google.com/docs/functions/get-started</a> and this <a href="https://firebase.google.com/docs/emulator-suite/install_and_configure" rel="nofollow noreferrer">https://firebase.google.com/docs/emulator-suite/install_and_configure</a>.</p>
  <p>I run this in my project folder:</p>
  <pre><code>npm install -g firebase-tools
  firebase login
  firebase init functions
  </code></pre>
  <p>I run this in my project/functions folder:</p>
  <pre><code>npm install firebase-functions@latest firebase-admin@latest --save
  npm install -g firebase-tools
  </code></pre>
  <p>I code some functions.
  I run this in my project folder:</p>
  <pre><code>firebase emulators:start
  </code></pre>
  <p>Everything is ok.
  I want to use Firestore.
  I run this in my folder projects:</p>
  <pre><code>firebase init
  firebase init emulators
  </code></pre>
  <p>(I accept to use firestore)
  And here when I run:</p>
  <pre><code>firebase emulators:start
  </code></pre>
  <p>I read in my console: <strong>Fatal error occured:
  Firestore Emulator has exited with code: 1</strong>
  and in firestore-debug.log i have:</p>
  <pre><code>Error occurred during initialization of VM
  java/lang/NoClassDefFoundError: java/lang/Object
  </code></pre>
  <p>PS: I use jdk 14</p>
  <p>Anyone know wher is the error?</p>