CJavaVM

master

Allows using `libjvm` in other Swift packages.
SwiftJava/CJavaVM

libjvm Swift package

Allows using libjvm in other Swift packages.

Note: this has only been tested on OS X 10.11 right now and will require different paths if used on any other operating system.

Usage

import PackageDescription

let package = Package(
    name: "example",
    dependencies: [
        .Package(url: "https://github.com/neonichu/CJavaVM", majorVersion: 1)
    ]
)

Build your dependent packages somewhat like this:

JVM_LIBRARY_PATH=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/server
swift build -Xlinker -L${JVM_LIBRARY_PATH} -Xlinker -rpath -Xlinker ${JVM_LIBRARY_PATH} -ljvm

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Nov 09 2022 02:07:28 GMT-0500 (GMT-05:00)