graalvm 2023-02-10

As a general intuition check, should I forget about classpath as a runtime concern in GraalVM-compiled programs? For example, when reading from the filesystem, should I prefer calling slurp directly over io/resource? Does classpath serve any purpose at runtime?

@coby Classpath still works for io/resource but you have to explicity configure your build to keep resources around in your image

Note that these regexes are classpath resource paths, not file system paths

But if I don't know ahead of time where the config file would live (say it's a CLI option on the binary itself) then I would not be able to use resource in this way, correct?

yes, but this is also true of regular JVM programs

That's what I thought, just wanted to confirm. Thanks! 🙂

👍 1

btw I found your Hello World GraalVM video extremely helpful, so thanks for that too.

Cool!

🙌 1