When you are compiling a format, JRCompiler.getJavaCompiler() tries to first load org.eclipse.jdt.internal.compiler.Compiler by calling JRClassLoader.loadClassForName(String). If the class isn't on the classpath a java.lang.NoClassDefFoundError is thrown. Since this class doesn't inherit from java.lang.Exception, it is missed by the try/catch block it's in, preventing it from trying to locate an alternate compiler. The try/catch blocks in this method should be changed to catch java.lang.Throwable instead so this exception is caught.
User Feedback
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now