Java Support
From NARS2000
Jump to navigationJump to search
Download Java
Download Java version 8 (it's free). You can use either
- Java SE Runtime Environment
from
https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
if you want just the minimum necessary to run Java with APL
you do not have to write any Java to use the new features
- Java SE Development Kit
from
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
if you also want to write and compile your own Java tools for use with APL
just write a static Java method according to the interface procedures
compile it
include the directory with the *.class in the APL preferences in the Java Class Path(s) (see below)
Installation
- Install Java from the downloaded file
note the name of the directory where you installed Java, like C:\Program Files\Java\jre1.8.0_151
- Install the version of NARS2000 APL with support for Java
note the name of the directory where you installed APL, like C:\Program Files\NARS2000\AplJava
Start Up
Start APL, and enable support for Java Three locations will need to be specified in the preferences
1 under the Java installation directory
containing the file jvm.dll
this depends on whether you installed the JRE or the JDK, like either
C:\Program Files\Java\jre1.8.0_151\bin\server\jvm.dll
C:\Program Files\Java\jdk1.8.0_151\jre\bin\server\jvm.dll
2 under the APL installation directory
sm
session
do
menu,Edit,Customize...
Java Preferences
Select a version #
1.8
Enter the Path to ... JVM.DLL ...
C:\Program Files\Java\jre1.8.0_141\bin\server\jvm.dll
Enter the Java Class Path(s) ...
C:\Program Files\NARS2000\AplJava\sm
Enter the Java Session Manager Path.
C:\Program Files\NARS2000\AplJava\session
check Use Java-based Session Manager
click either OK or Apply
the new Session Manager should start
you can leave either by
)off
closing the old Session Manager window
The next time you start APL, the new session manager will automatically start.