Skip to content

Commit ce06524

Browse files
committed
Update README
1 parent c63dd5d commit ce06524

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,25 @@
22

33
Allows using `libjvm` in other Swift packages.
44

5+
Note: this has only been tested on OS X 10.11 right now and will require
6+
different paths if used on any other operating system.
7+
58
## Usage
69

710
```swift
11+
import PackageDescription
12+
813
let package = Package(
914
name: "example",
1015
dependencies: [
1116
.Package(url: "https://github.com/neonichu/CJavaVM", majorVersion: 1)
1217
]
1318
)
1419
```
20+
21+
Build your dependent packages somewhat like this:
22+
23+
```bash
24+
JVM_LIBRARY_PATH=/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre/lib/server
25+
swift build -Xlinker -L$(JVM_LIBRARY_PATH) -Xlinker -rpath -Xlinker $(JVM_LIBRARY_PATH)
26+
```

0 commit comments

Comments
 (0)