I have a C# class library that is running a jarFile
string args="java -jar jar.jar...";
ProcessStartInfo startInfo = new ProcessStartInfo("java.exe", args);
Process runProc = Process.Start(startInfo);
But when using the dll from application I found that I must place the jar file in the application's working directory or to specify full path.
I don't like both of the option- absulote path is bad, and asking user to copy a jar file to his working directory in order to use the dll is not comfortable.
Is there is some alternative, some way of embedding the jar file to the class library?