I have a C # program that provides access to a java program using tcp. In my C # program, I run a java program on this line of code:
var process = new Process { StartInfo = { UseShellExecute = false, CreateNoWindow = false, FileName = "cmd.exe", Arguments = (@"/c java -ms16m -mx512m -jar pathToJavaApp/javaApp.jar 3562") } };
This works great, I have not had a problem so far. I installed my program on a colleagueโs computer. Now I get the error message: Could not access the jar file.
So, I tried the command line "java -jar javaApp.jar" and javaApp starts right away.
I tried to run the program as an administrator, the same error. (Windows Vista)
At the moment, I have no idea what the problem may be.
java c #
Gerbrand
source share