Stuber tool reference
Use the Stuber tool to generate .NET proxy classes.
Usage is :
Stuber [Options] ChannelUrl JavaClassNames
Options :
/out:OutputFile (If not specified, the assembly is given an arbitrary name and is generated in the working directory)
/ref:ReferencedAssembliesFiles (Semi-colon separated list)
ChannelUrl
This parameter specifies the network location of the Java server to query for Java classes.
DotNetJ uses channel urls of the form java://host:port
or java://host
. If the port is not specified, a default port (usually 1604) is used.
JavaClassNames
A list of Java class names specifying the Java elements to include in the generated assembly.
Java class names must be fullnames and be separated by whitespaces.
Note
The Stuber tools automatically resolves the references contained in the requested Java classes. In other words, when using the Stuber tool, only place in the JavaClassNames list the Java classes you need, the tool will ensure that all the other classes that may be needed will be encapsulated in the generated assembly.
The .NET assemblies that the Stuber tool generates are self-hosting, but they also make use of the DotNetJ client (the DotNetJ.dll
assembly), so don't forget to include it when compiling your client applications.