Frage

I'm on Windows.

I downloaded the source to a java project (Plovr) and I can build it with ant using cygwin.

But just opening it in Eclipse means it will never build again. If I open it in Eclipse and then close it again, it will no longer build. I also can't add files that were written in Eclipse.


Output:

javacc:

compile:
    [javac] Compiling 7 source files to C:\Users\Bryana\plovr\pulled\plovr-master\build\classes
    [javac] C:\Users\Bryana\plovr\pulled\plovr-master\closure\closure-stylesheets\build\genfiles\java\com\google\common\css\compiler\ast\GssParserCC.java:345: error: cannot access Type
    [javac]     public CssBooleanExpressionNode buildBoolExpressionNode(CssBooleanExpressionNode.Type type,
    [javac]                                                                                     ^
    [javac]   bad class file: C:\Users\Bryana\plovr\pulled\plovr-master\build\classes\com\google\common\css\compiler\ast\CssBooleanExpressionNode$Type.class
    [javac]     bad signature: ▒3i
    [javac]     Please remove or make sure it appears in the correct subdirectory of the classpath.

BUILD FAILED

Using: jdk1.7.0_40 , Apache Ant(TM) version 1.9.2 , Eclipse Juno Service Release 2

War es hilfreich?

Lösung

Found this: http://suneelgv.wordpress.com/2011/02/17/java-lang-classformaterror-invalid-constant-pool-index-63-bad-class-file/ referring to that http://mail-archives.apache.org/mod_mbox/cayenne-user/200804.mbox/%3C0JZC008038T159@mail.uni-rostock.de%3E.

In your case the filterset or similar on-the-fly modification during copying - accidentally including class files - might not do any harm with Unix but convert line endings on Windows.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top