Start the Novell JVM for NetWare.
At the server console, enter
envset
When you unload Novell JVM (JAVA.NLM) for NetWare, the process deletes the Environment variables that use ENVSET. You can add Environment variables in the SYS:\ETC\JAVA.CFG file, which is read when Java loads.
NOTE: The file SYS:\ETC\JAVA.CFG is not required for JVM 1.4.0. However, it might be convenient to create it and populate it with common environment variables.
IMPORTANT: You must understand the UNIX* XWindows environment to set up the DISPLAY environment variable.
Start Novell JVM for NetWare.
At the server console, enter
envset DISPLAY=<IP address>:<display>
The default value for DISPLAY is 127.0.0.1:0, which is the address of the loopback interface and the default value for the display and screen you want to use.
The Remote Variable Display feature lets you export the display of any X client programs on to any machine on the network running an X server. Because NetWare GUI is X based, all Java GUI applications and applets are considered X clients and are able to use the remote display feature.
You must configure your destination server to allow remote access. The following are two methods to authorize access of a remote Xclient to a local Xserver:
This turns off access control and lets any other client access the server. Be cautious with this method. It lets anyone who can connect to your Xserver do tasks in your account name and run programs on your display.
You use this command to add hosts to the list of client workstations you allow to access your server. You also use this command to delete workstations from this list. For more information on determining the best method of allowing remote access, see your Xserver user manual.
Start Xserver at the local system.
Allow the remote NetWare system to access the local Xserver.
At the local system, start RCONJ and log in to the NetWare server.
If Java is not loaded on the NetWare server, do the following in the RCONJ window:
If Java is loaded on the NetWare server, enter the following in the RCONJ window and then start the Java applet or application.
envset display=[ip address of server]:0
If you want the application to always open to the GUI screen, enter the following at the command line of the client workstation:
envset display=[IP address of server]:0.0
All Java GUI applications will now display on the remote client workstation on the GUI screen. If you do not want the application to always open to the GUI screen, remove the ".0" from the end of the IP address.
NOTE: The NetWare Console screen does not automatically switch to the GUI screen when a GUI application is opened on the remote exports or foreign IP addresses.
You can use the Current Working Directory (CWD) variable to run an application in a specific directory even if it is not part of a package. The CWD variable is set to the root when Java is loaded; however, you can set it to any desired directory.
Start the Novell JVM for NetWare.
To set the CWD for all applications, enter the following at the server console:
envset CWD=<pathname>
For example:
envset CWD=SYS:\MYJAVA\MYAPP
The preferred method is to set the CWD for the current application by using the -env option. For example:
Java -envCWD=SYS:\MYFILES MYAPP
A default CLASSPATH variable is set when Java loads. If the CLASSPATH variable is set incorrectly, your Java applications might not run. You can improve the performance by reducing the size of the CLASSPATH variable.
Start Novell JVM for NetWare.
Enter the following at the server console:
envset CLASSPATH=<current CLASSPATH value>;<path to append>
For example, entering envset at the server console could produce the following for the CLASSPATH variable:
CLASSPATH=SYS:\JAVA\LIB;SYS:
\JAVA\CLASSES
To append the path SYS:\MYCLASSES to this CLASSPATH, enter
envset CLASSPATH=SYS:\JAVA\LIB;
SYS:\JAVA\CLASSES;SYS:\MYCLASSES
Or substitute <current CLASSPATH value> with $CLASSPATH, as in the following:
envset CLASSPATH=$CLASSPATH;SYS:\MYCLASSES
The $ symbol in $CLASSPATH allows the substitution of the current value of the CLASSPATH environment variable.
The CLASSPATH variable provides a default path. The directory to this path, SYS:\JAVA\CLASSES, is created by the install program. To use this default path, or any path inside the CLASSPATH variable, place your classes in the directory pointed to by the path.
NOTE: The default CLASSPATH variable includes ".", which means to look in the current working directory for the application. It also includes the CWD specified with the -env option. If the CWD variable is not set correctly, the application might not run (see Setting the CWD Environment Variable .)