title: Java jface calling browser from an relative location
body: <p>I have encountered a small problem that I need some help on. The issue is that I wish to call a browser window which calls a html page. The html file opens in 3 different browsers so the code for that should be correct. The actual problem is that it brings up a page can't be displayed error message</p>
  
  <p>Here is the code that gets the location </p>
  
  <pre><code>    package org.error;
  
      public class BrowserLocation {
  
          private String test1 = "org\\error\\PatientNumberError.html";
  
          public BrowserLocation() {
          }
  
          public String patientNumberAddress() {
              return test1;
          }
      }
  </code></pre>
  
  <p>and here is the code that creates the browser component and calls the location of the html file.</p>
  
  <pre><code>    Browser browser = new Browser(container, SWT.NONE);
      browser.setForeground(SWTResourceManager.getColor(SWT.COLOR_DARK_BLUE));
      browser.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));
      browser.setUrl(browserLocation.patientNumberAddress());
      browser.setBounds(25, 25, 315, 180);
  </code></pre>
  
  <p>Would it be possible to find the error of my ways?</p>