Skip to content

Commit

Permalink
Merge pull request #84 from timob/version3_prep
Browse files Browse the repository at this point in the history
Version3 prep
  • Loading branch information
timob authored Apr 11, 2024
2 parents 5a2f360 + 5bb52f8 commit bf01796
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ JNI Go Interface.
A package to access Java from Go code. Can be used from a Go executable or shared library.
This allows for Go to initiate the JVM or Java to start a Go runtime respectively.

[![Go Reference](https://pkg.go.dev/badge/tekao.net/jnigi.svg)](https://pkg.go.dev/tekao.net/jnigi)
[![Go Reference](https://pkg.go.dev/badge/github.com/timob/jnigi.svg)](https://pkg.go.dev/github.com/timob/jnigi)
[![Actions](https://github.com/timob/jnigi/actions/workflows/ci_test.yaml/badge.svg)](https://github.com/timob/jnigi/actions?query=branch%3Amaster)

## Module name change
The go module name is renamed to `github.com/timob/jnigi` in the branch. Checkout `v2` if you want to retain the old name.

## Install
``` bash
# In your apps Go module directory
go get tekao.net/jnigi
go get github.com/timob/jnigi

# Add flags needed to include JNI header files, change this as appropriate for your JDK and OS
export CGO_CFLAGS="-I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux"
Expand Down Expand Up @@ -53,7 +56,7 @@ package main

import (
"fmt"
"tekao.net/jnigi"
"github.com/timob/jnigi"
"log"
"runtime"
)
Expand Down
4 changes: 2 additions & 2 deletions example/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module example
go 1.17

require (
tekao.net/jnigi v0.0.0
github.com/timob/jnigi v0.0.0
)

replace tekao.net/jnigi => ../
replace github.com/timob/jnigi => ../
2 changes: 1 addition & 1 deletion example/hello_world.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"fmt"
"tekao.net/jnigi"
"github.com/timob/jnigi"
"log"
"runtime"
)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module tekao.net/jnigi
module github.com/timob/jnigi

go 1.12

Expand Down

0 comments on commit bf01796

Please sign in to comment.