title: How to fix Resource not Found with getResourceAsStream
body: <p>I am following this guide to use the <a href="https://developers.google.com/calendar/quickstart/java" rel="nofollow noreferrer">Google Calendar API</a> on my applicaton, I reused the same code on the example, but for some reason I am having the following error. How do I get this json file?</p>
  
  <p>I have tried changing the position of the file, but nothing has worked out.</p>
  
  <p><strong>This is the error im getting:</strong> </p>
  
  <pre><code>Exception in thread "main" java.io.FileNotFoundException: Resource not found: /credentials.json
      at com.albot.focus.Utils.GoogleCalendarAPI.getCredentials(GoogleCalendarAPI.java:51)
      at com.albot.focus.Utils.GoogleCalendarAPI.main(GoogleCalendarAPI.java:68)
  </code></pre>
  
  <p>I expect to retrieve the events from the user on the Google Calendar API.</p>