• Error #2046 in blank Flex application in IntelliJ IDEA 10

    Not far ago Intellij IDEA 10 was released. I downloaded it and launched blank Flex application but found this:

    “Error #2046: The loaded file did not have a valid signature”.

    This problem is described here: http://forums.adobe.com/thread/723378?decorator=print&displayFullThread=true. The reason: IDEA doesn’t pass “-static-link-runtime-shared-libraries” parameter to the compiled by default. So flash player cannot find RSL libraries in runtime. Thus if you have the same problem – just add a string “-static-link-runtime-shared-libraries=true” to you additional compiler options.

    Fun coding!

  • About two errors in IntelliJ IDEA

    Invalid menu handle

    Error message
    If a strange error “Invalid menu handle” appears to you in IntelliJ IDEA when you are trying to run an application, it means the path of your default application executor is broken. For example, you need to reinstall the flash player if you run swf files.

    No JDK specified in Ant

    This error message can be displayed when you are trying to run ANT build. It is caused when your default Project SDK is set to non-Java SDK (Flex SDK whatever). So just open Project settings window and select any JDK in Project->Project SDK combobox.