“java.exe” is not recognized as an internal or external command, operable program or batch file

后端 未结 7 815
春和景丽
春和景丽 2021-01-16 04:52

I am writing an application that creates a Java portlet by the ant batch file with the cmd.exe using a Process object in C#.

When I pass the \"Create\" command to th

相关标签:
7条回答
  • 2021-01-16 05:27

    In my experience, this problem had nothing to do with Java path. Actually I had installed java for 64 bit machine and had compiled my C# program with 32 bit settings. Calling a 64Bit program was not possible from a 32bit program. So i changed my Target platform to "Any CPU" and it worked fine.

    0 讨论(0)
提交回复
热议问题