Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build cobol-check as GraalVM native-image #220

Open
0xE282B0 opened this issue Jul 10, 2022 · 3 comments
Open

Build cobol-check as GraalVM native-image #220

0xE282B0 opened this issue Jul 10, 2022 · 3 comments

Comments

@0xE282B0
Copy link

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?

@dakaa16
Copy link
Collaborator

dakaa16 commented Jul 11, 2022

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

@0xE282B0
Copy link
Author

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?

@dakaa16
Copy link
Collaborator

dakaa16 commented Jul 12, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants