这是抛出错误的代码:
// Run compiler
Process p = System.Diagnostics.Process.Start("java.exe", ex);
p.WaitForExit();这是一个新的服务器(Windows 2008 R2,IIS7.5),并且我安装了Java Runtime 7。
我还将系统属性中的环境变量JAVA_HOME设置为C:\Progra~1\Java\jre7,如下所示:
http://confluence.atlassian.com/display/DOC/Setting+the+JAVA_HOME+Variable+in+Windows
但它没有任何区别。
有任何想法吗?完整的错误是:
[Win32Exception (0x80004005): The system cannot find the file specified]
System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo) +921
System.Diagnostics.Process.Start() +131
System.Diagnostics.Process.Start(ProcessStartInfo startInfo) +45
Arcade.UploadFunctions.minifyC2Runtime(Int32 GameID) +334
Arcade.GameFunctions.createGame(Int32 CatID, String Name, String Description, String Instructions, Int32 U