Free Support Forum - aspose.com

File /META-INF/versions/9/module-info.class need be compiled by JDK 6


#1

Hello,

Running Aspose.Words 18.12 for Java in Web Application Server Resin 4.0.59 and Java 8 I get the following error:

failed scanning class META-INF/versions/9/module-info.class
java.lang.IllegalStateException: META-INF/versions/9/module-info.class: ‘19’ is an unknown constant pool type.
java.lang.IllegalStateException: META-INF/versions/9/module-info.class: ‘19’ is an unknown constant pool type.
at com.caucho.bytecode.ByteCodeClassScanner.error(ByteCodeClassScanner.java:575)

The error caused by the fact that this file /versions/9/module-info.class is compiled by Java 9 but all other classes in the library are compiled by Java 6.

Could you please compile the file also for Java 6/7/8?

Best regards, Evgeniy


#2

@konfetov

Thanks for your inquiry. We have logged this problem in our issue tracking system as WORDSJAVA-1963. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.


#3

A post was split to a new topic: Jetty doesn’t support JVM 9


#4

@konfetov

Thanks for your patience. We have tested the scenario using Resin/4.0.59 with Java 8 and have not managed to reproduce this issue at our end. Aspose.Words for Java works as expected on our end regardless of location:

\WEB-INF\lib\aspose-words-18.12-jdk16.jar
resin\webapp-jars\aspose-words-18.12-jdk16.jar

It would be great if you please share how you create your web application. Please share the complete steps that you are using to reproduce this issue at our end. Thanks for your cooperation.


#5

Hi Tahir,

Yes, the latest version of Resin 4.0.59 works properly fine with Aspose.Words 18.11 and higher.
Thank you very much for your input.
You can close the issue.

Best regards, Evgeniy


#6

@konfetov

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.