Running and Compiling JNI on NT
- The Setup
- Go to an NT machine
- Use the latest JDK for all you Java Compiling and Running needs.
In the Baird NT lab, you will want to add the JDK to your path:
C:\TEMP>SET PATH=S:\APPS\JDK1.1.7B\BIN;%PATH%
- Get the latest VRM client library (NTCLIENT.DLL)
- Get the Agent.java and Ncomm.java files
- Run VRM Server on the appropriate port
- Compiling the Super Classes
- Set the Server and server port in Ncomm.java:
connect("dash", 2112);
- Compile Ncomm.java (make sure you are using latest JDK):
C:\TEMP\> javac Ncomm.java
- Compile Agent.java:
C:\TEMP\> javac Agent.java
- Writing the Code
- Compiling the Code
- Running the Code
- Make sure NTclient.DLL is in current directory
- Make sure Ncomm.class and Agent.class are in the current directory
- Make sure you are using the latest JDK
- Run the code you wrote:
C:\TEMP\> java MyClass
<< Back to Course View: Winter 1999
|