title: Trying to load a local page into JavaFX webEngine
body: <p>I have a webView component on a tab in my JavaFX application which I am trying to load an locally stored HTML page into:</p>
  
  <pre><code>WebView browser = new WebView();
  WebEngine webEngine = browser.getEngine();
  webEngine.load("/webView/main.html");
  </code></pre>
  
  <p>My html document is (possibly incorrectly) stored in the following location:</p>
  
  <p><a href="https://i.stack.imgur.com/Xgxb0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Xgxb0.png" alt="Location of my HTML document"></a></p>
  
  <p>where com.cds.gui contains the class where I am attempting to load the file. If I print out <code>webEngine.getDocument()</code> I get <code>null</code> - i.e. the document isn't getting loaded. </p>
  
  <p>Please let me know where I'm going wrong! Thanks.</p>