Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version2 prep #81

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ 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)

## 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 +53,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
Loading