As I can see, here described same problem (or here).
I guess it should help you.
EDIT
From these links:
Solution 1
Use a classpath wildcard.
jsvc -cp globalclasspath/*:daemons/service.jar (...)
Solution 2
To read data in JARs not on the classpath, use URLClassLoader. The general algorithm is this:
- Find the list of JARs in the globalclasspath directory.
- Create a URLClassLoader from this list of JARs.
- Look up the resource you want from the URLClassLoader instance.
To find JARs on the classpath, I used ResourceList from the StackOverflow article "Get a list of resources from classpath directory."
Solution 3
In that case, you need to add both the jars in the class path and execute the below command - where com.schemas.Loader will be your Loader class.
java -cp a.jar;b.jar com.schemas.Loader
And after that you will be able to get resource file as:
InputStream is = getClass().getResourceAsStream("/com/schemas/your-file.js");