зеркало из https://github.com/mozilla/pjs.git
Add new document on scripting java.
This commit is contained in:
Родитель
adbcef8ac9
Коммит
4b1dee847c
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -88,11 +88,16 @@ 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>
|
||||||
<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>
|
||||||
<td><a href="perf.html">Performance Hints</a>
|
<td><a href="perf.html">Performance Hints</a>
|
||||||
</td>
|
</td>
|
||||||
<td>Some tips on writing faster JavaScript code.</td>
|
<td>Some tips on writing faster JavaScript code.</td>
|
||||||
|
|
|
@ -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> java org.mozilla.javascript.tools.shell.Main</pre>
|
<pre> 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> java -jar js.jar</pre>
|
<pre> 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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче