Swift/Java people - This may be a stupid question.

The W3C's epub validator is a jar file that can be executed from the command line.

Is this something that can be easily wrapped in a small swift app? I.e. can you call a jar file from a swift Mac app and pipe the output. Do you need to install Java on your Mac to do so?

I clearly haven't thought about this much but woke up wondering if I could replace this use of Docker and remembered @airspeedswift 's session at Server Side 2024.

@dimsumthinking it used to be possible in project builder in earlier OSX times.

The way a bundled app is executed and can bundle whole runtimes (swift early days used to bundle the whole shebang), I would assume it is indeed possible. The app bundle rules haven’t changed much.

But I have an inkling it wouldn’t work without a more permissive setting for XProtect.

Something like https://medium.com/swift2go/embedding-python-interpreter-inside-a-macos-app-and-publish-to-app-store-successfully-309be9fb96a5

Or

https://www.balthisar.com/blog/bundle-the-jre/

Might give you early pointers

Embedding a Python interpreter inside a MacOS / iOS app, and publishing to the App Store…

The struggle was real

Medium