This document describes how to use jarsigner.exe by using asp.net. failed: the system cannot find the specified file. I hope this tutorial will be helpful to you.
Several days later, I used cwRsync to perform mutual backup on the website files of the two servers. In the early morning, one server was on the machine, and the DNS automatically switched to another server. The page browsing was normal. In the morning, it is found that the new server always fails to generate an apk online. Check that jdk is not installed on the new server, download, install, add environment variables, and assign permissions, and then test the SDK. The error message is as follows:
The Code is as follows: |
Copy code |
System. ComponentModel. Win32Exception (0x80004005): The System cannot find the specified file. At System. Diagnostics. Process. StartWithCreateProcess (ProcessStartInfo startInfo) At System. Diagnostics. Process. Start (ProcessStartInfo startInfo) At WEB. Controllers. ApkController. Index () in e:/www/web1/WEB/Controllers/ApkController. cs: line 132 |
When an error occurs, call jarsigner.exe to generate an apk and manually create a batch for testing. The SDK can be generated normally. After one morning, Run "iisreset/restart" to restart IIS,Problem SolvingThe reason is that the newly added environment variable requires IIS to be restarted to take effect.