I'm trying to use swift-java to include swift code in a java image processing application.
PhotonVision/photonvision#2158
I'm using FFM mode.
I've got it building when using ./gradlew run but it fails when packaging into a jar.
The generated java code uses System.loadLibrary but this doesn't work from a jar because
- /usr/bin/swift is not on the java path
- SwiftJava and SwiftRuntimeFunctions are still inside the jar
I think a solution would be to extract the libs in the initializer and use System.load.
I'm trying to use swift-java to include swift code in a java image processing application.
PhotonVision/photonvision#2158
I'm using FFM mode.
I've got it building when using ./gradlew run but it fails when packaging into a jar.
The generated java code uses System.loadLibrary but this doesn't work from a jar because
I think a solution would be to extract the libs in the initializer and use System.load.