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
:at com.test.source.TestProgram.main(TestProgram.java:33)
:at com.test.source.TestProgram.main(TestProgram.java:33)
Any help would be appreciated.
Coded for you. Please learn to do it yourself next time