You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the java binary doesn't care about these types of classpath entries. Something like java Main -cp /real/file.jar:/not/a/real/file.jar:/real/dir:/not/a/real/dir is fine as long as Main doesn't end up missing classes it needs.
I only care because better conformance to java's behavior would ease tooling integration. For example, you can reuse Gradle's JavaExec(!) task to easily integrate GraalVM:
This automatically generates complicated classpaths from project and Maven dependencies and works nicely. However, it breaks if you don't have any resources. In that case, it doesn't create the output directory for resources but will still list it in the classpath, breaking native-image.
In general, using native-image should be simpler for many scripts/tools if they're not responsible for making sure all directories on the classpath exist.
The text was updated successfully, but these errors were encountered:
Running
native-image
with non-existent classpath entries (i.e.native-image Main -cp /not/a/real/dir
) causes an error likeHowever, the
java
binary doesn't care about these types of classpath entries. Something likejava Main -cp /real/file.jar:/not/a/real/file.jar:/real/dir:/not/a/real/dir
is fine as long asMain
doesn't end up missing classes it needs.I only care because better conformance to
java
's behavior would ease tooling integration. For example, you can reuse Gradle'sJavaExec
(!) task to easily integrate GraalVM:This automatically generates complicated classpaths from project and Maven dependencies and works nicely. However, it breaks if you don't have any resources. In that case, it doesn't create the output directory for resources but will still list it in the classpath, breaking
native-image
.In general, using
native-image
should be simpler for many scripts/tools if they're not responsible for making sure all directories on the classpath exist.The text was updated successfully, but these errors were encountered: