1
votes

When I run an executable I created, it uses the jvm.dll from C:\Windows\System32. But I want it to use the jvm.dll in C:\Program Files\Java\jdk1.6.0_17\jre\bin\server.

C:\Program Files\Java\jdk1.6.0_17\jre\bin\server is in my PATH environment variable.

Does anyone know how to accomplish this?

Thanks.

3

3 Answers

1
votes

To solve this problem use same bit software mean if you are using 32bit Flex sdk then use 32 bit jdk and if you are using 64 bit Flex sdk then use 64 bit jdk

0
votes

Is your jdk1.6.0_17 path before the windows\system32 path in your PATH variable?

Another thing to try would be to set "JAVA_HOME" to the root directory of your non-system32 JRE install.

0
votes

c:\windows\system32\java.exe is just a hook

and it loads default jvm from program files

do you know which one is it loading in your case?