Flex3 SDK doesn't like 64Bit Java

Monday, March 7. 2011

I stumbled over this when I I had to fix a little something on an older project Flex3 and a certain part needed to get compiled by mxmlc.exe. But it wouldn't, all the path names etc. looked just fine but mxmlc wouldn't even start.  All I got was a message in the command line interface like:

Exception in thread "main" java.lang.UnsupportedClassVersionError: flex2/tools/Compiler (Unsupported major.minor version  48.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

And why flex2? Google didn't help much, I found a thread in the Adobe Knowledge base with a matching description but no useful answer, the OP got the advice to edit the build.xml file but it didn't solve his problem and looking at mine it looked just fine.

It took me ages of search until I found someone mention  64 Bit difficulties: and yes, move the sdk and projekt files to a 32 bit environment in a vm and it compiles nicely.

What is it with adobe and 64 bit: no flash debug player on linux, no air runtime on linux and the mxmlc dompiler doesn't even run on 64 bit Windows.  



Trackbacks


Trackback specific URI for this entry
    No Trackbacks

Comments


    No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA