Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Knowledge Base

   Products   Downloads   Sales   Support   About us
  Knowledge Base  Ask Cody  Manuals  Source Code Library  Resources
 



        
 
Distinct RPC for Java : All topics frequently asked questions
 

Page 1 of 2  Next

Product: Distinct RPC for JavaTopic: GeneralLast updated: 3/26/2008
 
Q.: Does Distinct Java RPC support the XDR ""hyper"" and ""unsigned hyper"" types.
A.: Yes, XDR hypers are 64 bit intergers - these will be mapped to Java Longs. Java longs are also 64 bit integers.(see e.g.
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html ).

 
Do you find this information useful ?       Yes   No   Not Sure

Product: Distinct RPC for JavaTopic: GeneralLast updated: 3/26/2008
 
Q.: Does Distinct ONC RPC for Java support RPCBIND?
A.: Yes, RPCBIND is supported starting with version 3.0.
 
Do you find this information useful ?       Yes   No   Not Sure

Product: Distinct RPC for JavaTopic: GeneralLast updated: 3/26/2008
 
Q.: Does Distinct ONC RPC for Java support secure RPC?
A.: Yes, it supports DES authentication and has been tested both with JCE and Cryptix.
 
Do you find this information useful ?       Yes   No   Not Sure

Product: Distinct RPC for JavaTopic: GeneralLast updated: 3/26/2008
 
Q.: How do I install the client run time?
A.: To install in GUI mode, run

java -classpath JrpcClientRT.jar run

to install in console mode, run

java -classpath JrpcClientRT.jar run -console

 
Do you find this information useful ?       Yes   No   Not Sure

Product: Distinct RPC for JavaTopic: GeneralLast updated: 3/26/2008
 
Q.: How do you send double-byte CHAR with your JRPC library?
A.: Use XDR_opaque instead of XDR_string. In this case the data will be transferred as is.
 
Do you find this information useful ?       Yes   No   Not Sure

Product: Distinct RPC for JavaTopic: GeneralLast updated: 3/26/2008
 
Q.: If I write a client in Java will I be able to interoperate with my C server?
A.: Yes, you will because Distinct ONC RPC/XDR for Java is fully RFC compliant.
 
Do you find this information useful ?       Yes   No   Not Sure

Product: Distinct RPC for JavaTopic: GeneralLast updated: 3/26/2008
 
Q.: Using your trial version, I am able to generate java classes from an .x file using Jrpcgen. When I try to run the server I get following exception. [java] Exception in thread ""main"" java.lang.UnsatisfiedLinkError: no dstnct32 in java.library.path
A.: This error is peculuar to the trial version.

Make sure the PATH variable available to the copy of the environment you're using contains the path to dstnct32.dll location (normally c:\program files\common files\DistinctShared).

Or, alternatively, if some other scripts you're running alter the PATH variable, you can explicitly set the library path using the -D option of the java interpreter, e.g.

java -Djava.library.path="c:\program files\common files\DistinctShared" C<lassName>

(note there's no space between -D and java.library.path).
 
Do you find this information useful ?       Yes   No   Not Sure

Product: Distinct RPC for JavaTopic: GeneralLast updated: 3/26/2008
 
Q.: What do I need to add to my classpath to use the toolkit?
A.: The CLASSPATH should include
%JRPC_DIR%;%JRPC_DIR%\djrpc.jar;%JRPC_DIR%\xmlrpc.jar;.where JRPC_DIR is the directory where JRPC is installed.
 
Do you find this information useful ?       Yes   No   Not Sure

Product: Distinct RPC for JavaTopic: GeneralLast updated: 3/26/2008
 
Q.: When I run your sample or compile my application that uses your Java classes I get the error: "Class not found". Why?
A.: This has happened because you have not added the Distinct classes to your classpath. The distinct classes are installed in two directories. Both of these must be added to your classpath. For example, if you installed them under c:\distinct\jrpc, you will need to add this to your classpath as well as c:\distinct\jrpc\jrpcgen. Please remember to add the second entry, otherwise jrpcgen will not work.

If you are running on NT go to the Control Panel, select System and select the Environment button. If you already have a CLASSPATH variable defined add the path of the directory containing the Distinct classes to this, otherwise create a new variable called CLASSPATH and add the path to this.

If you are running on Windows 95 or 98, add the path of the directory containing the Distinct classes to the CLASSPATH variable in the autoexec.bat file. If the variable has not already been defined here, you must add it.

On UNIX update the CLASSPATH variable in your .profile file to include the path of the directory containing the Distinct classes.
 
Do you find this information useful ?       Yes   No   Not Sure

Product: Distinct RPC for JavaTopic: GeneralLast updated: 3/28/2008
 
Q.: When I try to run jrpcgen on my x file or one of your sample files, I get the following error message: Jrpcgen V3.0, Copyright 1997-1999 by Distinct Corporation, Jrpcgen: "cl/C/EP/nologo" failed: CreateProcess
A.: For preprocessing, you must have a C/C++ compiler installed. If a C compiler is not required then you can use
java Jrpcgen -n myfile.x

On a Unix System you must specify where the compiler resides. The correct syntax is:
java Jrpcgen -c /usr/ccs/lib/cpp myfile.x

Options related to preprocessors:

-n
Do not run the C/C++ preprocessor before translating the ".x" file. This option is useful when you do not have a C compiler installed and you want to translate a file that does not contain preprocessor directives.
-c C-preprocessor
Specifies the name of the C/C++ preprocessor to be used. The default is "cl/C /EP /nologo" (which is valid for Windows systems). Specify the command line if you are using a different preprocessor (for example, "/usr/ccs/lib/cpp" on Solaris systems).
 
Do you find this information useful ?       Yes   No   Not Sure

Page 1 of 2  Next

Search by Keyword


If you did not find what you are looking for:


Products

 Packet Sniffing
The Distinct Network Monitor is a protocol analyzer for Windows that includes both packet sniffing and network traffic statistical analysis tools.

 Intelliterm
The Most Complete Terminal Emulator for TN3270, TN5250 and DEC VT220 to VT420

 RPC for C and C++
The Fastest Way to Port Your Existing Unix-RPC Applications to Windows

  9/2/2010   Legal notices | PRIVACY Policy |