The book of inspiration

July 23, 2010

Error loading jvm

Filed under: jsc — Tags: , , — zproxy @ 9:24 am

When I was trying to use jsc to build a flash component the mxmlc compiler failed to launch with this message:

[exec] Error loading: C:\Program Files\Java\jre6\bin\client\jvm.dll

Error loading: C:\Program Files\Java\jre6\bin\client\jvm.dll

To fix that I copied from:

“C:\Program Files\Java\jre6\bin\msvcr71.dll”

to (x86)

“C:\Windows\System32\msvcr71.dll”

to (x86) on 64bit windows

“C:\Windows\SysWOW64\msvcr71.dll”

Then I ran the generated swf file in the flash player which told me the following:

VerifyError: Error #1014: Class mx.core::BitmapAsset could not be found.

As this component was not part of the new BrowserApplication project template it had a custom build.bat which needed a new flag to be passed mxmlc.

-static-link-runtime-shared-libraries=true

Update from the future: While setting up a build environment in Amazon EC the same problem occurs.

See also:

Advertisements

1 Comment

  1. confirmed, this solution really works
    Thanks

    Comment by 1234 — January 25, 2012 @ 5:13 pm


RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Blog at WordPress.com.

%d bloggers like this: