Ad
  • Custom User Avatar

    I'm getting the same warning while preparing the sample-tests, i.e. without running any of my code. Is this Kata currently broken?

        /Flux.java:1: warning: Can't initialize javac processor due to (most likely) a class loader problem: java.lang.NoClassDefFoundError: com/sun/tools/javac/processing/JavacProcessingEnvironment
    public interface Flux {Integer getNone();void setNone(Integer i);}
           ^
      	at lombok.javac.apt.LombokProcessor.init(LombokProcessor.java:83)
      	at lombok.core.AnnotationProcessor$JavacDescriptor.want(AnnotationProcessor.java:87)
      	at lombok.core.AnnotationProcessor.init(AnnotationProcessor.java:140)
      	at lombok.launch.AnnotationProcessorHider$AnnotationProcessor.init(AnnotationProcessor.java:69)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.<init>(JavacProcessingEnvironment.java:500)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:597)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:690)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
      	at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
      	at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1167)
      	at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:853)
      	at com.sun.tools.javac.main.Main.compile(Main.java:521)
      	at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
      	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
      	at ClassHelper.createInterface(ClassHelper.java:39)
      	at InterfacingTest.randomInterface(InterfacingTest.java:95)
      	at InterfacingTest.prepare(InterfacingTest.java:78)
        ...
    

    The warning vanishes if I manually load tools.jar at the very beginning of prepare().