cobol-check icon indicating copy to clipboard operation
cobol-check copied to clipboard

Build cobol-check as GraalVM native-image

Open 0xE282B0 opened this issue 2 years ago • 3 comments

Hi, I was testing cobol-check for the gnucobol language track of the exercism.org learning platform. I'm concerned that installing a Java program would cause support requests to set up a local environment. Therefore I'd suggest building cobol-check as GraalVM native-image.

I already tried it successfully with this branch, is this a contribution you would be interested in?

0xE282B0 avatar Jul 10 '22 18:07 0xE282B0

Hi @0xE282B0

This would be a really fine addition - thank you for sharing this. I'd like to know how to run the exe-file, as I simply get: Error: No bin\java.exe and no environment variable JAVA_HOME

dakaa16 avatar Jul 11 '22 12:07 dakaa16

You're right, I forgot to include the bundle files and it tried to fall back to a Java VM. Can you try it again?

0xE282B0 avatar Jul 11 '22 16:07 0xE282B0

This got me further. I get an exception when the executable is trying to get some copybooks that should be included as a resource. Messages, which are included in the same way works fine. The copybooks are placed at src/main/resources/org/openmainframeproject/cobolcheck/copybooks Is this something you can fix? Let me know if you need further information.

dakaa16 avatar Jul 12 '22 09:07 dakaa16