Hibernate version: 3.1
General Question: This I think is not a Hibernate specific question but hopefully someone can answer it anyway.
The manifest specifies the Main-Class and the Class-Path. The hibernate3.jar is first in my list of jar files in the manifest.
If I build my jar and execute it within the Eclipse Workspace project structure it works fine. However, when I move the jar out into say the root of C:, it fails to find the Hibernate jar ie; ClassNotFoundException. I have tried all kinds of ways of specifying the location of the jars eg; hibernate3.jar, ../hibernate3.jar and so on, but nothing works. I have verified that the manifest is being accessed - by changing a jar name to an invalid name. The manifest is in meta-inf directory, which off the root of the executable jar. All jar files are also directly off the jar root. Here's the executable structure:
com/foo/bar/
com/foo/bar/bar1/ and so on...
jars
meta-inf/MANIFEST.MF
Any help with this admittedly java101 question would be appreciated...
|