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

can't find java virtual machine

Explorer ,
Nov 20, 2008 Nov 20, 2008

Copy link to clipboard

Copied

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

Views

677

Translate

Translate

Report

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.

Votes

Translate

Translate
Explorer ,
Nov 21, 2008 Nov 21, 2008

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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