jpmml / jpmml-evaluator

Java Evaluator API for PMML
GNU Affero General Public License v3.0
895 stars 255 forks source link

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Image; #236

Closed zhang0557kui closed 2 years ago

zhang0557kui commented 2 years ago

when I use:

Evaluator evaluator = new LoadingModelEvaluatorBuilder()
  .load(new File("clf.pmml"))
  .build();

and this error occured: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Image;

who can help me!

vruusmann commented 2 years ago

java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Image;

The JPMML-Evaluator does not have any graphical components, and therefore does not import any classes from java.awt.* or javax.swing.* packages.

Therefore, this NoClassDefFoundError cannot be raised by the JPMML-Evaluator library, and should not be reported here.

who can help me!

You can help yourself. Look at the error stack trace, and identify the problematic component/library/framework that way.