The J adapter class generator references the following class information when generating an adapter class:
Super class/interface
Class/interface specified in the public method, constructor parameter, or return value
Class/interface specified in the public variable
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:
Create a folder corresponding to the package name. For package name aaa.bbb.ccc, for instance, create a folderwith name aaa\bbb\ccc.
Create a Java source program satisfying the following. Assign this file the name "ClassName.java".
package PackageName; public class ClassName {}
Compile the source program with the Java compiler.
c:\> javac FolderName\ClassName.java
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."