Hello, all. I am working on a project that I would like to package into a single jar file for simple execution. At work classes from EJB are stored on a different drive from where I am doing the development. I am having troubles accessing those classes from the Jars I am creating. When I try the following manifest:
the application will not start, saying that MyPackage.MyClass cannot be found. This is despite MyPackage.MyClass being properly packaged into the Jar file, as verified by a jar t operation. When I leave off the drive letter in the Class-Path attribute:
the application starts and executes properly right up until a class from someFolder is needed, at which point exceptions begin to be thrown.
Any ideas will be much appreciated! John Todd
Joined: Apr 13, 2007
I was eventually able to find the answer to my own question: Jars do not accept absolute paths at all, only relative paths. Thus, the alternate drive approach will not work. Fortunately I was able to find an alternate solution.