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.

Advertisement

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. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.