I created Extension aix to measure text width and height
I used : import java.awt.Font;
and create object fnt from class Font:
Font fnt = new Font(FontName, Font.BOLD, FontSize);
My code sure correct and run in java compiler and my Extension was build successful
But when i am using my extension in ai2 or AppyBuilder … error message appears
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/awt/Font;
what is the problem ?