Compc – Error: could not find a JVM.
I fired up a command prompt and wanted to learn a little about “compc”. Well I got this error message. To no avail all I could find on google was a url in Japanese Here is the page.
The page gave me enough info to go look for a “jvm.config” located in the Flex install folder (C:\Program Files\Macromedia\Flex” folder for me, its in the “bin” folder where “compc” is also.
Then the jvm.config page itself shed some more light on the situation.
#
# VM configuration
#
# Where to find JVM, if {java.home}/jre exists then that JVM is used
# if not then it must be the path to the JRE itself
#
# If no java.home is specified a VM is located by looking in these places in this
# order:
#
# 1) JAVA_HOME environment variables (same rules as java.home above)
# 2) bin directory for java.dll (windows) or lib//libjava.so (unix)
# 3) ../jre
# 4) registry (windows only)
#
I opted for commenting out the java.home line and letting it pick up my JAVA_HOME variable.
So if you ever run into the “Error: could not find a JVM.” while using compc, hopefully this post has been spidered so you wont have to translate (or decipher) a page in Japanese.
Pingback: Underlog - the simple things » Blog Archive » Flex 2.0 - до ада и обратно