|
Hello,
I am having trouble importing classes/creating objects in NETREXX.
I am trying to print out a variable of type int from my AClass to AClassTest. I am creating AClass with java and AClassTest with NETREXX.
When I compile the AClassTest.nrx file I get this error:
***Error: The method 'AClass()' cannot be found in class 'AClassTest' or a superclass***
The compiled AClass.java class (AClass.class) is in the same directory as the AClassTest.nrx file.
***** Directory tree *****
├───lib
│ ├───AClassTest.nrx
│ ├───AClass.java
│ ├───AClassTest.class
│ ├───AClass.class
***** AClassTest.nrx *****
obj = AClass()
say obj.num
***** AClass.java *****
public class AClass {
public int num = 25;
}
Any help would be much appreciated.
Best regards,
Justin
|