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

后端 未结 7 908
春和景丽
春和景丽 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:08

    I had the same problem and solved it. I'm using 64-bit Windows 7 with 64-bit Java. Setting the compile target in the Configuration Manager to 'x64' solved it. If you use 'any CPU' the build probably falls back to 'x86', which is not working with 64-bit Java. So you need different builds for different machines...

提交回复
热议问题