Dependency Discoverer fails with "Error code = -3"

Hi,

I’m trying to check the dependencies of a Java SE library compared to MicroEJ libraries.

My JAR file is PICOCLI : https://search.maven.org/remotecontent?filepath=info/picocli/picocli/4.5.2/picocli-4.5.2.jar (GitHub - remkop/picocli: Picocli is a modern framework for building powerful, user-friendly, GraalVM-enabled command line apps with ease. It supports colors, autocompletion, subcommands, and more. In 1 source file so apps can include as source & avoid adding a dependency. Written in Java, usable from Groovy, Kotlin, Scala, etc.)

I dropped it in the classpath folder as indicated in the documentation:
image

However, I get the following trace:

Starting dependency discoverer.
[M0] - Internal limits (please contact your vendor).
Error code = -3
Contact IS2T support

What does this error code means ?

(I’m using the latest version: Release 2.2.0 · MicroEJ/Tool-ApiDependencyDiscoverer · GitHub)

Thanks for you help,
Lucas

Hi Lucas,

Assuming you are using latest version of our tools (currently 2.2.0 at the time I’m writing, https://github.com/MicroEJ/Tool-DependencyDiscoverer), there could be 2 reasons for this error message:

  1. corruption of the imported .jar file

  2. the Jar file is Java 8 => current MicroEJ runtime compatibility is Java 7 (see https://docs.microej.com/en/latest/overview/runtime.html#language)

Kind regards,
Stephane.

Hi Stephane

The file checksum is correct so I guess it shall depend on Java 8 specific features.
I understand that I have no chance to run this binary JAR file directly on MicroEJ.
I will have a look to the source code instead.

Thanks for your quick reply !
Lucas.