Skip to content

[GR-62394] Espresso: "java.lang.NoSuchMethodError: getMainType" was thrown when running a Java-11 application #10694

Closed
@xiaogvo

Description

@xiaogvo

Hi,
I'm trying to run James 3.6.2 (Java Apache Mail Enterprise Server) using Espresso. I built the James project upon OpenJDK11, so I ran it with --java.JavaHome pointing to the OpenJDK11. However, I got the following error:

java.lang.NoSuchMethodError: getMainType
Exception in thread "main" java.lang.NoSuchMethodError: getMainType

Even if I ran a simple program printing "Hello World", the same error happened. I'm wondering how to fix it.
Thanks a lot.

Environment:
Ubuntu 20.04
espresso-java21-24.1.2-linux-amd64
OpenJDK 11

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions