Archive for March 21st, 2006

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.

1 comment March 21st, 2006



Disclaimer: I work as a Flash/Flex Developer for Adobe Systems Incorporated. The opinions expressed here represent my own and not those of my employer.

My Amazon.com Wish List

Calendar

March 2006
S M T W T F S
« Feb   Apr »
 1234
567891011
12131415161718
19202122232425
262728293031  

Posts by Month

Posts by Category


Flex.org - The Directory for Flex