Start 64bit application
Hello.
I have a problem that my VB.Net application is starting java in 32bit mode while I need java to start in 64bit mode.I tried to explicitly write path where java 64bit is located but no luck, still starts in 32bit mode. If I pass -d64 argument while launching then there will be error: "This Java instance does not support a 64-bit JVM. Please install the desired veriosn." But if launch jar file using .bat file then Java will launch in 64bit mode (even without -d64).
Code:
Dim ProcessProperties As New ProcessStartInfo
ProcessProperties.FileName = "C:\Program Files (x86)\Java\jre7\bin\java.exe"
ProcessProperties.Arguments = "-d64 -Xms1024M -Xmx4096M -jar C:\a\jarfile.jar -o true"
Process.Start(ProcessProperties)
Could you please explain to me, what I'm doing wrong?
Thanks.
what happens when you try ProcessProperties.FileName = "C:\Program Files\Java\jre7\bin\java.exe" ?