Problem when runing in linux NoSuchMethodError: java.awt.Font

I am using aspose-words-14.12.0-jdk14.jar on my project . I use it to convert .doc file to pdf . the code is simple: doc.save("myFileName.pd); when I run it on windows OS it works o.k. , but when I run it in Linux OS I get an error: Exception in thread "main" java.lang.NoSuchMethodError: java.awt.Font: method createFont(ILjava/io/File;)Ljava/awt/Font; not found

I must use java 1.4 version , what is the problem? how can I fix it?

Hi Tami,

Thanks
for your inquiry. Please note that Aspose.Words
requires TrueType fonts when rendering documents to fixed-page formats
(PDF or XPS). Make sure you have all the Fonts installed on your
machine you’re using to convert document to Pdf format. I would suggest you please read the
following article:
http://www.aspose.com/docs/display/wordsjava/How+Aspose.Words+Uses+True+Type+Fonts
http://www.aspose.com/docs/display/wordsjava/How+to++Specify+True+Type+Fonts+Location

Moreover, starting from Aspose.Words for Java 15.1.0 release,
we stopped shipping JAR files for 1.4 and 1.5 JDKs. Please refer to the
following blog post:


Aspose.Words for Java Code Baseline Moved to Java 6