I need to reference some jar files when executing a Java program. The problem is that those jar files will not be in a standard location ever. That means when the Java program starts up I need to find out where those jar files are and update any references in the Java program. I have no idea how to do this though. Any help would be appreciated.
Scenario:
I have a Process A (written in .NET) that will start Process B (a Jar file). Process B needs to reference tons of Jar files(250MB). The problem is that the location of the jar files will change.
Several Examples:
C:\Program Files (x86)\TestProgram D:\OtherProgram E:\Program Files\ThirdLocation
So, either Process A or B will read the registry (on a Windows Server) to find out where the Jar files are located. Then Process B needs to "magically point all the references in the code to those jar files".
Problem:
The problem is that I don't know how to "magically point all the references in the code to those jar files". I assume I have to dynamically load the jars somehow, or update the references when I start Process B.
I have tried to configure the build path, but I don't think I did it correctly, so it didn't work as expected.
Any ideas on how to do this? Thanks for any help!!