CORBA
to org.omg.CORBA
.
Build Errors
This section lists errors that may be encountered while building the example applications and the solutions to those problems.
The executable idl2java is not in your path.
Typical output:
prompt> make idl
idl2java Bank.idl
sh: idl2java: not found
*** Error code 1
make: Fatal error: Command failed for target 'idl' Solutions:
idl2java
to compile UNIX format files you must invoke the C preprocessor manually. Then you can run idl2java
on the preprocessed file. As an alternative, you can convert UNIX format files to DOS format, then run idl2java
.
prompt> make javac Client.java
sh: javac: not found
*** Error code 1
make: Fatal error: Command failed for target \QClient.class'
bin
directory to your path and rehash.
javac
binary.
setenv PATH /<installation_location>/java/bin:$PATH
prompt> make
javac Client.java
Client.java:7: Undefined variable: org
org.omg.CORBA.ORB.init();
^
./Bank/AccountManager.java:2: Interface org.omg.CORBA.Object of
interface Bank.AccountManager not found.
public interface AccountManager extends org.omg.CORBA.Object
^
setenv CLASSPATH .:/<installation_location>/java/classes:/<installation_location>/isb/classes
idl2java
compiler and recompile all IDL files. This will create new stub, skeleton, and support files which are compatible with the OMG IDL /Java Language Mapping Specification.
Make sure you make backups of all the IDL files before you use idl2java
.
prompt> java -DCORBA_DEBUG ClientThe runtime diagnostics can be turned on via HTML by specifying the CORBA_DEBUG parameter as follows:
...
<applet code=ClientApplet.class width=200 height=80>
<param name=CORBA_DEBUG value=1>
</applet>
prompt> java -DCORBA_DEBUG Client
...
c:\netscape\suitespot\wai\java\nisb.zip
log
directory on the current drive.
Last Updated: 02/04/98 13:48:04