I have a java project, which I converted into jar file. And later, my C# project is using that jar file with this code
proc = new Process();
proc.StartInfo.WorkingDirectory = jarDir;
Console.WriteLine("\nDirectory with jar file is\n" + jarDir);
proc.StartInfo.FileName = jarName;
Console.WriteLine("\npassed arguments are" + ifs_id.ToString() + " " + max_record.ToString() + " " + max_time.ToString() +
" " + outputName + " " + outputDir);
proc.StartInfo.Arguments = " " + ifs_id.ToString() + " " + max_record.ToString() + " " + max_time.ToString() +
" " + outputName + " " + outputDir;
proc.EnableRaisingEvents = true;
proc.Exited += new EventHandler(OnProcessExit);
proc.Start();
And all was working prefectly. Problem begins when I transfered my project to other computer, also working under windows10. It dosent work. Process starts, and imidiately finishies. Whats more, I cant run jar file by double clicking on it, and I think that this might be the case. When developing code, everything works perfectly. But when i converted project to .jar file, it stops working.
Its not a problem with directories, I double checked them.
I have no ideas what my be causing this situation. I will realy appretiate any advices.