> This issue is still haunting me. The same project could be running on one
If you check the 2 stacktraces you've included below, this is an error being emitted by javac, not Maven. You just happen to see it via Maven as that is your build tool. It is a bit of a pain, but can you test compiling with javac from the command line (passing in the dependencies etc via -cp)? I think you will discover that is occurs just as it does when compiling with Maven. I'd offer help with this if it was an open source project. Once you verify this, follow the directions about the Bug Parade so this can be fixed in the JDK itself. Maven simply calls out and uses your system JDK/javac for compiling, so bugs in javac mean that errors occur when compiling with Maven as well. Wayne > > ZipFileIndexFileObject[C:\bea12\jdk1.7.0_04_x86\lib\ct.sym(META-INF/sym/rt.jar/java/util/Comparator.class)]] > > An exception has occurred in the compiler (1.7.0_04). Please file a bug > > at > > the Java Developer Connection (http://java.sun.com/webapps/bugreport) > > after checking > > the Bug Parade for duplicates. Include your program and the following > > diagnostic in your report. Thank you. > > java.lang.IllegalAccessError: tried to access class > > com.sun.tools.javac.code.Kinds$1 from class > >>> > [ERROR] Failure executing javac, but could not parse the error: > >>> > An exception has occurred in the compiler (1.7.0_04). Please file a > >>> bug at > >>> > the Java Developer Connection > >>> > (http://java.sun.com/webapps/bugreport) > >>> > after checking > >>> > the Bug Parade for duplicates. Include your program and the > >>> > following > >>> > diagnostic in your report. Thank you. > >>> > java.lang.LinkageError: loader constraint violation: loader > >>> > (instance > >>> of > >>> > sun/misc/Launcher$AppClassLoader) previously initiated loading for a > >>> > different type wit > >>> > h name "com/sun/tools/javac/code/Symbol" > >>> > at java.lang.ClassLoader.defineClass1(Native Method) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
