Help! Error: Java.lang.RunTimeException #9
Unanswered
AndresTapiero
asked this question in
Q&A
Replies: 1 comment
-
Hello, sorry for the delay! Could you try to add the jar containing the class not found like this: ...
return cs.getCodeExecutor().execute(ExecuteConfig.forBodySourceGenerator(
BodySourceGenerator.createSimple()
.addCode(javaCode)
).addClassRepository(
"C:/a-folder/your-path-to-jar-that-contains-the-not-found-class.jar"
));
... Take also a look here and let me know if you solved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I am trying to run this code to replace values in a string, but it shows me the following error.
Error: Java.lang.RunTimeException
org.burningwave.core.classes.JavaMemoryCompiler$Compilation$Exception: Can't initialize javac processor due to (most likely) a class loader problem: java.lang.NoClassDefFoundError: com/sun/tools/javac/processing/JavacProcessingEnvironment at lombok.javac.apt.LombokProcessor.getJavacProcessingEnvironment(LombokProcessor.java:419) at lombok.javac.apt.LombokProcessor.init(LombokProcessor.java:90) at lombok.core.AnnotationProcessor$JavacDescriptor.want(AnnotationProcessor.java:124) at lombok.core.AnnotationProcessor.init(AnnotationProcessor.java:177) at lombok.launch.AnnotationProcessorHider$AnnotationProcessor.init(AnnotationProcessor.java:73) at com.sun.tools.javac.processing.JavacProcessingEnvironment$ProcessorState.<init>(JavacProcessingEnvironment.java:508) at com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors$ProcessorStateIterator.next(JavacProcessingEnvironment.java:605) at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:698) at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1043) at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1184) at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856) at com.sun.tools.javac.main.Main.compile(Main.java:523) at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129) at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
Any idea what I am doing wrong?
It's mandatory to use the method "useType"?
Beta Was this translation helpful? Give feedback.
All reactions