greedyzebra
Technical User
Hi,
I'll try to simplify this problem as much as possible.
I have a program that uses multiple jar files. We'll call two of them 1.jar and 2.jar.
1.jar has objects w,x,y and z.
2.jar has objects y and z.
At runtime the user will decide whether to execute with 1.jar or 2.jar. I compile my program with 1.jar.
In my program I call Class.getMethod(String,Object[]), which crashes with a NoClassDefException.
In the error message is a reference to object w, which exists in 1.jar, but not 2.jar.
I have created a "dummy" jar that contains the classes that exist in 1.jar but not in 2.jar to run when the user uses 2.jar and it works. But I would like to find a way to solve this problem in a manner that would require less maintence (everytime a new version of 1.jar comes out, I'd have to see if there were new methods added).
Always willing to post further information if necessary, but don't want to make the description too long!
Thanks,
GZ
I'll try to simplify this problem as much as possible.
I have a program that uses multiple jar files. We'll call two of them 1.jar and 2.jar.
1.jar has objects w,x,y and z.
2.jar has objects y and z.
At runtime the user will decide whether to execute with 1.jar or 2.jar. I compile my program with 1.jar.
In my program I call Class.getMethod(String,Object[]), which crashes with a NoClassDefException.
In the error message is a reference to object w, which exists in 1.jar, but not 2.jar.
I have created a "dummy" jar that contains the classes that exist in 1.jar but not in 2.jar to run when the user uses 2.jar and it works. But I would like to find a way to solve this problem in a manner that would require less maintence (everytime a new version of 1.jar comes out, I'd have to see if there were new methods added).
Always willing to post further information if necessary, but don't want to make the description too long!
Thanks,
GZ