Reputation: 527
My C# programm starts java application on 64bit OS (Windows). Java process is 64bit, how can i fix my launching code to start java process in 32bit?
My launching code:
ProcessStartInfo info = new ProcessStartInfo();
info.WorkingDirectory = ServerProperties.ServerWorkingDirectory;
info.FileName = "java"
info.Arguments = "some arguements"
ServerProcess = new Process();
ServerProcess.StartInfo = info;
ServerProcess.Start();
Thanks!
Upvotes: 0
Views: 1779
Reputation: 5421
If you host your application in IIS you need enable x86 processes for pool of web app. Follows next steps:
Check next article for details - Support of 32-bit applications in the 64-bit Windows environment
Upvotes: 0
Reputation: 6578
This is more a function of the process you're starting as opposed to the process that's starting it (i.e. the process that you're starting has to have been compiled/targeted to x86 as opposed to x86-64).
However, if both x86 and x86-64 java.exe are installed on the machine-in-question, you can probably hunt the x86 one down by looking in Program Files (x86) as opposed to Program Files.
Upvotes: 5