Hi,
We're having a problem with compilation that does not always occur.
We are using version 4.5.0 Apose PDF JAR.
Our build uses maven 2. Here is the error:
[ERROR] diagnostic: error: com.sun.tools.javac.jvm.ClassReader$BadClassFile: bad class file: com\aspose\ms\System\a\a\b$e.class(com\aspose\ms\System\a\a:b$e.class)undeclared type variable: TKey
Please remove or make sure it appears in the correct subdirectory of the classpath.
An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
java.lang.RuntimeException: com.sun.tools.javac.jvm.ClassReader$BadClassFile: bad class file: com\aspose\ms\System\a\a\b$e.class(com\aspose\ms\System\a\a:b$e.class)
undeclared type variable: TKey
Please remove or make sure it appears in the correct subdirectory of the classpath.
at org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor.process(CanonicalModelProcessor.java:407)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:627)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:556)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:701)
at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:987)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
at com.sun.tools.javac.main.Main.compile(Main.java:353)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:113)
at org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.executeWithExceptionsHandled(AbstractAnnotationProcessorMojo.java:545)
at org.bsc.maven.plugin.processor.AbstractAnnotationProcessorMojo.execute(AbstractAnnotationProcessorMojo.java:285)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
We are running Java JDK 1_6_45.
This doesn't look like a problem with our code, so I have not included it here for brevity. Please let me know if the code would be useful.
Are there any other JARs required together with this one? What are we missing?
Cheers,
James