Class cam.codegen.CreateRMI


CreateRMI is a Java application used to create "wrapper" classes that enable the construction of distributed applications that use the Java RMI package to provide the underlying communications link.. (See NetApp Wrappers for a description of the construction process).

Chris Anderson (C) UCLA 1998
9/20/98



Obtaining and invoking the cam.codegen.CreateRMI application.

The application cam.codegen.CreateRMI is available as one application in the zipped .jar file

CAMcodegen.zip

(The reason I zip the jar file is so that your internet browser doesn't try to immediately download and execute the .jar file.)

Download this file, unzip it to extract CAMcodegen.jar. The CreateRMI routine
is invoked with a java command, the form of which depends upon the type of operating system one is using.

For a PC Platform: : with the CLASSPATH variable set to include the Java classes.zip file one can use

java -classpath %CLASSPATH%;CAMcodegen.jar;.   cam.codegen.CreateRMI

For a UNIX Platform: with the CLASSPATH variable set to include the Java classes.zip file one can use

java -classpath $CLASSPATH%:CAMcodegen.jar:.  cam.codegen.CreateRMI


CreateRMI Use Diagram

The following diagram gives tips to it's use :


Common Problems


The most common problem that occurs in running the CreateRMI application is that it cannot find the target class. A "Class Not Found" exeception will appear in the Java console window when this occurs. Your target class must be locatable using the CLASSPATH/"package name" construct; specifically the concatenation of a directory listed in the CLASSPATH with the package name must yield a directory that contains the target class.


Inflating the .zip files :

On UNIX systems: The command that I use to unzip them is

unzip -a -U -o xxx.zip

where xxx.zip is the .zip file. The -a option forces a conversion of CR LF to just LF, the -U option preserves the upper-case aspect of the file names, and the -o option allows an overwrite of existing files.


On PC systems: One can use any of the wide number of unzip routines. You have to use a version of an unzip routine which supports long file names. I've been using the PKZIP for Windows 2.5 from PKWARE.