Add new document on scripting java.

This commit is contained in:
nboyd%atg.com 2003-04-24 13:14:00 +00:00
Родитель adbcef8ac9
Коммит 4b1dee847c
3 изменённых файлов: 1499 добавлений и 2 удалений

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -88,9 +88,14 @@ Scripting Languages for Java</a>
<table width="100%"> <table width="100%">
<tbody> <tbody>
<tr> <tr>
<td><a href="scriptjava.html">Scripting Java</a> <td><a href="ScriptingJava.html">Scripting Java</a>
</td> </td>
<td>How to use Rhino to script Java classes.</td> <td>How to use Rhino to script Java classes.</td>
</tr>
<tr>
<td><a href="scriptjava.html">Scripting Java</a>
</td>
<td>How to use Rhino to script Java classes (an older treatment).</td>
</tr> </tr>
<tr> <tr>
<td><a href="perf.html">Performance Hints</a> <td><a href="perf.html">Performance Hints</a>

Просмотреть файл

@ -36,7 +36,7 @@ a command line.
file, <tt>js.jar</tt>. If you add the JAR file to your class path, you file, <tt>js.jar</tt>. If you add the JAR file to your class path, you
can start the Rhino shell using the command can start the Rhino shell using the command
<pre>&nbsp;&nbsp;&nbsp; java org.mozilla.javascript.tools.shell.Main</pre> <pre>&nbsp;&nbsp;&nbsp; java org.mozilla.javascript.tools.shell.Main</pre>
or if you have Java 2 (JDK 1.2), you can avoid changing your classpath or if you have Java 2 (JDK 1.2 or greater), you can avoid changing your classpath
and simply use the command and simply use the command
<pre>&nbsp;&nbsp;&nbsp; java -jar js.jar</pre> <pre>&nbsp;&nbsp;&nbsp; java -jar js.jar</pre>
Unfortunately the <tt>-jar</tt> option to <tt>java</tt> will overwrite Unfortunately the <tt>-jar</tt> option to <tt>java</tt> will overwrite