Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

can't find java virtual machine

Explorer ,
Nov 20, 2008 Nov 20, 2008
I got an error message, when trying to compile. At one point it was working, but maybe I screwed up one of the environment variables.

C:\Documents and Settings\jm>mxmlc
Error: could not find a JVM.
TOPICS
ActionScript
711
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Nov 21, 2008 Nov 21, 2008
To answer my own question and save future people pain. In Windows, when Java can't find the virtual machine, you must do

Start > Control Panel > System > Advanced > Environment Variables

and set up user variable "java_home" to the JDK with forward slashes like so:

C:/Program Files/Java/jdk1.6.0_06

You do NOT put "/bin". If you put Java in a different folder, you should change java_home accordingly. Now I can move on with life.
Translate
Explorer ,
Nov 21, 2008 Nov 21, 2008
LATEST
To answer my own question and save future people pain. In Windows, when Java can't find the virtual machine, you must do

Start > Control Panel > System > Advanced > Environment Variables

and set up user variable "java_home" to the JDK with forward slashes like so:

C:/Program Files/Java/jdk1.6.0_06

You do NOT put "/bin". If you put Java in a different folder, you should change java_home accordingly. Now I can move on with life.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines