Hi I'm writing my first program which calls java from RPG, I have some questions. In my case I need to use the google protobuf.
I have to use a class wtih many sub-classes, if I look into the directory which contains the package I saw something like this:
MainClass.class
MainClass$Sub-Class1.class
MainClass$Sub-Class1$SubSubClass2.class
MainClass$Sub-Class2.class
and so on.
Now If I try to construct the class MainClass.Sub-Class1.class when call I receive a message: No classs method found, While If I try to construct the class: MainClass$Sub-Class1.class it works, but some Java programmers tell me this is not correct, I'll have to use the class: MainClass.Sub-Class1.class. I didn't know java but I think when it make Import of my package it construct all the classes you need... Could I construct directly MainClass.Sub-Class1.class?
Many thanks
I have to use a class wtih many sub-classes, if I look into the directory which contains the package I saw something like this:
MainClass.class
MainClass$Sub-Class1.class
MainClass$Sub-Class1$SubSubClass2.class
MainClass$Sub-Class2.class
and so on.
Now If I try to construct the class MainClass.Sub-Class1.class when call I receive a message: No classs method found, While If I try to construct the class: MainClass$Sub-Class1.class it works, but some Java programmers tell me this is not correct, I'll have to use the class: MainClass.Sub-Class1.class. I didn't know java but I think when it make Import of my package it construct all the classes you need... Could I construct directly MainClass.Sub-Class1.class?
Many thanks
Comment