Results 1 to 4 of 4

Thread: Ant build failed (AbstractPainter.class error)

  1. #1
    Junior Member
    Join Date
    Oct 2008
    Posts
    14

    Default Ant build failed (AbstractPainter.class error)

    Having an issue building out from source. On a mac, using jenv to run java 1.6. Error follows. Any help would be appreciated.

    Code:
    $ java -version
    java version "1.6.0_65"
    Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468)
    Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
    $
    $ ant
    Buildfile: /Users/<me>/Code/KoLmafia/kolmafia-code/build.xml
    
    start:
    
    init:
    
    svn-version:
    
    gitsvn-version:
    
    version:
         [echo] Current revision: 19527M
    
    debug:
    
    init:
    
    svn-version:
    
    gitsvn-version:
    
    version:
         [echo] Current revision: 19527M
    
    compile:
        [javac] Compiling 1393 source files to /Users/<me>/Code/KoLmafia/kolmafia-code/build
        [javac] /Users/<me>/Code/KoLmafia/kolmafia-code/lib/org/jdesktop/swingx/JXLabel.java:71: cannot access org.jdesktop.swingx.painter.AbstractPainter
        [javac] bad class file: /Users/<me>/Code/KoLmafia/kolmafia-code/build/org/jdesktop/swingx/painter/AbstractPainter.class
        [javac] class file has wrong version 52.0, should be 50.0
        [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
        [javac] import org.jdesktop.swingx.painter.AbstractPainter;
        [javac]                                   ^
        [javac] Compile failed; see the compiler error output for details.
    
    BUILD FAILED
    /Users/<me>/Code/KoLmafia/kolmafia-code/build.xml:363: The following error occurred while executing this line:
    /Users/<me>/Code/KoLmafia/kolmafia-code/build.xml:149: Failed to compile third-party libraries
    
    Total time: 5 seconds

  2. #2
    Junior Member
    Join Date
    Oct 2008
    Posts
    14

    Default

    ...aaaaand nevermind, just deleted and re-checked out from source, everything built just fine. Move along, nothing to see here.

  3. #3
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,854

    Default

    That looks like you built with java 1.8 first (class file version 52.0 is when it was built targetting java 1.8), and then didn't clean fully before rebuilding with 1.6.

  4. #4
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    12,131

    Default

    I build with 1.8 on a Mac. No need to downgrade to 1.6 to build.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •