If I execute the command "C:\Windows\system32\java.exe" on the commandline I get information about how to use java as it should be. However, when i write a simple c++ program to do the same
#include <iostream>
int main()
{
std::system("C:\\Windows\\system32\\java.exe");
return 0;
}
I get the following console output:
'C:\Windows\system32\java.exe' is not recognized as an internal or external command,
operable program or batch file.
I am using the mingw-w64 compiler on windows 10.