Skip to main content
nikos101
Inspiring
August 15, 2011
Question

cfeclipse error: Bad version number in .class file

  • August 15, 2011
  • 2 replies
  • 7883 views

I am using cfeclipse now with flex builder 3 but ever time I try to use it with a cfc I get this error:

Error opening the editor.

Bad version number in .class file

any ideas?

    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    September 3, 2011

    Beware! The following method is unofficial, untested, unvalidated, and undertaken at your own risk. In any case, don't do it on a prodcution environment.

    Assume the problem is as I've just described. Then a possible solution is to reconfigure Flex Builder to use a newer version of Java, for example, 1.6.0. Proceed as follows:

    1) Stop Flex Builder;

    2) Open the Flex Builder installation directory (usually C:\Program Files\Adobe\Flex Builder 3\). Rename the directory jre to jre_ORIGINAL;

    3) Download and install the JDK of Java SE 6 Update 27 in a directory of your choice;

    4) Open the installation directory of this Java installation. Copy the directory jre to the Flex Builder installation directory.

    5) Start Flex Builder. It should now be running on the newer Java version. To verify, navigate as before to Help => Product Details => Configuration Details. Does this solve your original problem?

    6) Should there be any critical issues, then stop Flex Builder. Delete the jre directory, and rename jre_ORIGINAL back to jre.

    Dileep_NR
    Inspiring
    October 11, 2011

    Hi BKBK,

    THANKS A LOOOTTT...

    Its worked for me...

    BKBK
    Community Expert
    Community Expert
    October 11, 2011

    Dileep_NR wrote:

    Hi BKBK,

    THANKS A LOOOTTT...

    Its worked for me...

    I'm glad to have been of help.

    BKBK
    Community Expert
    Community Expert
    August 15, 2011

    It is likely that your Eclipse is configured to use a version of Java that is older than the one ColdFusion uses to compile Java classes. To update Eclipse's version of Java, follow the menu

    project => properties

    Click on 'Java Compiler'. Choose the most recent Java compliance level (likely 1.6).

    nikos101
    nikos101Author
    Inspiring
    August 16, 2011

    i dont see the option for the Java Compiler'

    BKBK
    Community Expert
    Community Expert
    August 16, 2011

    Just to synchronize, what version of Eclipse are you on? I am on 3.7.0.