Comments (2)
This typically happens when the JAR's manifest does not specify the Main-Class attribute or when the attribute is incorrectly set. Here are some steps to troubleshoot and potentially resolve the issue:
- Ensure that your JAR file's manifest contains a Main-Class attribute that specifies the fully qualified name of your main class.
- Since this is a Maven project, make sure your pom.xml is configured to correctly package the JAR with the main class specified.
After ensuring your pom.xml is correctly configured, rebuild and repackage your project, and try the native image command again.
from graal.
We can reverse the direction:
Create a new maven java app in netbeans.
Try to run native-image on it.
It will fail with the error above.
So in short, everything is in place. There is no missing main class or wrong .pom file here.
from graal.
Related Issues (20)
- [GR-52454] Native Image shutdown hooks don't run upon SIGINT HOT 2
- [GR-52453] [jfr] jdk.ContainerConfiguration doesn't set hostTotalMemory correctly
- [GR-52484] [jfr] jdk.PhysicalMemory event doesn't set 'usedSize' HOT 3
- Is there any problem with graalvm checking illegal strings? HOT 2
- [GR-52483] Native Image call graph imprecision HOT 7
- [GR-52515] META-INF/native-image/... files are ignored in some JARs (large, zip64, self-extracting) HOT 6
- Main entry point class 'HelloWorld.java' neither found on... on M2 HOT 5
- [GR-52475] Error with native image for ktfmt - Resource not found: /org/jetbrains/kotlin/cli/jvm/compiler/KotlinCoreEnvironment$Companion.class HOT 1
- Is there anything missing when graalvm-11uses JVM parameters to run java code? HOT 3
- GraalVM crashes with "fatal error: Initial size of CodeCache is too small" HOT 2
- [GR-52473] Serialization of arrays is not supported in Native Image HOT 4
- Classes not getting initialized HOT 1
- Build a spring boot3 project with hibernate-search and lucene backend, throw a 'undefined reference' error HOT 1
- [GR-52560] Size regression from GraalVM CE 23.0 to GraalVM for JDK 21 (CE) for `byte[] for code metadata` HOT 2
- JSON Metadata Versioning, Backwards Compatibility, and Evolution
- [GR-52553] Defining new classes at runtime is not supported HOT 2
- [GR-52591] Warning: Error processing trace entry map(size=5, {(tracer,reflect),(function,getSystemResource),(caller_class,org.apache.logging.log4j.core.util.Loader),(result,true),(args,[null])}): java.lang.NullPointerException HOT 3
- Caused by: java.lang.IllegalArgumentException: Method "list" could not be invoked HOT 14
- [GR-52611] Add the ability to add comments to JSON configuration file entries HOT 6
- --module-path directory: Modules Not Added HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from graal.