Skip to content
forked from neonichu/CJavaVM

Allows using `libjvm` in other Swift packages.

License

Notifications You must be signed in to change notification settings

SwiftJava/CJavaVM

 
 

Repository files navigation

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

About

Allows using `libjvm` in other Swift packages.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 98.4%
  • Other 1.6%