How to access java packages in javascript
<p>I am writing simple javascript.
script is</p>

<pre><code>document.write("Before script");
var test=new java.lang.String();
test="Test"
document.write(test);
</code></pre>

<p>for the above script getting following error</p>

<pre><code>Uncaught ReferenceError: java is not defined
</code></pre>

<p>what might be the problem ?</p>
