Giter VIP home page Giter VIP logo

jnibuilder's Introduction

The goal of this project is to produce a simple system for building run-anywhere jar, bundling jni binaries for multiple operating systems and architectures.

This plugin adds JNILibrarySpec, a subclass of NativeLibrarySpec that will take the component name of a JVM component in your build, and the package and name of classes within that component that have native methods, and will generate (or update) javah headers, then compile your native classes including those headers, then copy the native libraries back into the jvm component's build path, in an architecture-dependant subdirectory, where they can easily be loaded by ArchLoader.

See it in action at https://github.com/bgorven/Hello/blob/master/build.gradle

jnibuilder's People

Contributors

bgorven avatar

Stargazers

 avatar Tesla Zhang‮ avatar

Watchers

James Cloos avatar  avatar

jnibuilder's Issues

trouble invoking javah

Hi! This is a great utility. I'm trying to follow the Hello example in a project of mine. However, neither the Hello example nor my build.gradle invoke javah. The Hello example output lists nativeJavah being called, but if you delete the header and re-run it, the header isn't recreated. Can you explain or provide an example of how to cause javah invocation? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.