I'm new to JAVA on the mainframe and my boss has asked me to create some batch programs using JAVA. My teammate and I have created 2 programs using JZOS running JAVA on the Unix side of the mainframe from MVS JCL. His program however runs very slow so I was tasked with examining it and possibly improving it. I created a working version that runs much faster and it runs just fine on my PC in Eclipse and runs fine on the command line by running the jar with the JAVA command. However the problem occurs when I promote this to the mainframe. The program runs and errors off when one object calls another object passing any kind of parameter or variable.
For example. I have an environment object that contains data for connecting to DB2 and some other security applications. I can create the environment object fine from main but when I pass any data from that object or the object itself I get an error saying item cannot be found. If it's the entire object it says it cannot find the environment object. If I pass a string is will tell me it cannot find the String object.
The error looks like this:
Exception in thread "main" java.lang.NoSuchMethodError: org/dao/service/DataSourceUser.setEnvData(Lcom/test/copybooks/EnvPropertyRecord;)V
Any help would be appreciated.Coded for you. Please learn to do it yourself next time