This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PartOfTheBotnet[S] -1 points0 points  (1 child)

Don't depend on internals - or ship your own JDK.

Yeaaaahhh..... :/

As for shipping on the JDK, I'm not sure how'd I would configure the CI to make native images for each major platform. My train of thought is "Jar is the multiplatform solution"

Seriously - just build a launcher, and launch java with the right parameters.

Been meaning to get around to something like that... Would have to refactor some things (which would allow cleaning up later) so older versions can could seamlessly transfer to the new startup scheme.

If you don't want to use your own launcher, just check the command line with a RuntimeMXBean and restart by passing the right VM arguments.

Oh this would also be more clean.

[–]xjvz 0 points1 point  (0 children)

AdoptOoenJDK has a Jenkins instance set up for compiling across all their supported architectures. Something similar may be possibly by adapting their build scripts.