Top
NetCOBOL V11.0 J Adapter Class GeneratorUser's Guide
FUJITSU Software

3.1.4 Generating an Adapter Class When the Class File is Not Available

The J adapter class generator references the following class information when generating an adapter class:

Therefore, an adapter class cannot be generated normally without these class files. These class files may not be available depending on the environment. In this case, to create an adapter class normally, dummy class files having these file names must be prepared.

Prepare a dummy class file as follows:

  1. Create a folder corresponding to the package name. For package name aaa.bbb.ccc, for instance, create a folderwith name aaa\bbb\ccc.

  2. Create a Java source program satisfying the following. Assign this file the name "ClassName.java".

    package PackageName;
    public class ClassName {}
  3. Compile the source program with the Java compiler.

    c:\> javac FolderName\ClassName.java
  4. Enter the java2cob command.

    c:\> java2cob PackageName.ClassName

Note

If a class file is referred to, but does not exist when attempting to generate an adapter class, processing is terminated with message "Class information was not found. Generation was interrupted."