Skip to content
Olivier Chafik edited this page Nov 9, 2022 · 7 revisions

Links to download BridJ

It is advised to use Maven or sbt to manage dependencies automatically.

"Snapshots" are the latest deployed development version, e.g. 0.8.0-SNAPSHOT is the development version that will eventually lead to the 0.8.0 release version.

BridJ has several build artefacts, refer to the Build page for more details (in general the default artefact will be enough, but you might want one with C support only, or with only Unix support, to save size).

Maven

<project...>
  <repositories>
    <repository>
      <id>nativelibs4java-repo</id>
      <url>https://nativelibs4java.sourceforge.net/maven</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>com.nativelibs4java</groupId>
      <artifactId>bridj</artifactId>
      <version>0.7.0</version>
      <!-- <version>0.8.0-SNAPSHOT</version> -->
      <scope>compile</scope>
    </dependency>
  </dependencies>
  ...
</project>

Sbt

resolvers += Resolver.sonatypeRepo("snapshots")

libraryDependencies += "com.nativelibs4java" % "bridj" % "0.7.0"
// libraryDependencies += "com.nativelibs4java" % "bridj" % "0.8.0-SNAPSHOT"

Manual download

You can also try BridJ quickly through JNAerator (just select "BridJ" in the "Runtime" combobox).

Clone this wiki locally