reference a file in a java package with javascript
<p>I want to use the following js function to insert an image on a webpage, but I am not referencing the icon file correctly. </p>

<pre><code>function insertWarningIcon(value){
       return "&lt;img src='/icons/Warning-icon.png' width='25%' height='25%' /&gt;";
}
</code></pre>

<p>The image is contained in a java package 'icons.'  The file's path is:</p>

<pre><code>C:\Users\XXXX\Documents\NetBeansProjects\distributedTaskMonitor\src\java\icons\Warning-icon.png
</code></pre>

<p>The html file's path is: </p>

<pre><code>C:\Users\XXXX\Documents\NetBeansProjects\distributedTaskMonitor\web\gridMain.html
</code></pre>
