I have an application that needs to be opened with Java.exe . when i try to open the application with Command prompt with the following arguments
C:\\MyworkingFolder\\>start java -MyParamters ->This works and the application is launched
But when i use the same in my c# code
var pInfo = new ProcessStartInfo
{
FileName = "Java",
WorkingDirectory = "MyworkingFolder",
Arguments = -MyParamters
};
Process monitorProcess = Process.Start(pInfo);
This code part does not work. All that i get is a window that shows OpenWith
该应用程序现在可以正常工作。.我已经给出了Java的完整路径“ C:\\ ProgramData \\ Oracle \\ Java \\ javapath \\ java.exe”,并且现在可以正常工作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.