Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

gojava

> 编程语言
Open source

GoJava - Java bindings for Go packages

183 stars0 likes0 views
WebsiteGitHub

About

GoJava - Java bindings for Go packages

GoJava - Java bindings to Go packages

GoJava uses a forked version of gomobile to generate Java bindings to Go packages. The same set of types are supported. Details on how the binding works can be found here.

Usage

	gojava [-v] [-o ] [-s ] build [, [...]]

	This generates a jar containing Java bindings to the specified Go packages.

	-o string
	    Path to write the generated jar file. (default "libgojava.jar")
	-s string
	    Additional path to scan for Java source code. These files will be compiled and
	    included in the final jar.
	-v  Verbose output.

You can include the generated jar in your build using the build tool of your choice. The jar contains a native library (built for the build platform) which is loaded automatically. Cross platform builds are not currently supported.

NOTE: This has only been tested on an OSX developer machine and Linux (on Travis) and not in production.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Go

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言