classpath in jar files
Frnz
i have a jar file of my app with me and i used to execute this
as java - jar myapp.jar.
I have a manifest file inside the jar.
My requirement is that one of the file inmyapp.jar requires a class
which is available in say another jar(another.jar).
This requirement can be fulfilled by adding that jars' name (ie
another.jar) in the manifest file inside myapp.jar.
But the issue is that theanother.jar shud be taken from the machine specific directory which is not fixed.
ie we cannot sayd:\another.jar.
Instead it shud be say$MY_PATH/another.jar where $MY_PATH is an environment variable in that machine.
Also i know that in the manifest we cannot gived:\another.jar as
the URLs in the Class-Path header (in the manifest file) are given
relative to the URL of the JAR file of the application.
But i need to set the classpath at any cost.
i tried using say
java-cp $MY_PATH/another.jar -jar myapp.jar
But itz saying that class not found.
Any idea how i can proceed...
Thanks in advance..

