Fork me on GitHub
#graalvm
<
2020-03-20
>
samoleary14:03:36

hey, i'm having trouble with including resources in a native-image. my directory structure looks like this:

resources
  --- config
       --- aws.user
       --- aws.developer
src
target
project.clj
i've added the IncludeResources flag: -H:IncludeResources="/resources/config/aws.*$" and in the code: (slurp (io/resource "config/aws.developer")) but unfortunately i'm seeing: Exception in thread "main" java.lang.IllegalArgumentException: Cannot open <nil> as a Reader. am i on the right track?

borkdude15:03:40

try:

-H:IncludeResources="config/aws.*$"

👍 4
samoleary15:03:29

brilliant, that worked. thanks very much borkdude :thumbsup:

Mitch16:03:56

My understanding is that graal cannot compile native images for other architectures (ARM, espressif, etc.). Is that correct?

borkdude16:03:29

they do have a distribution called aarch64. but you cannot cross-compile if that's what you mean

4