3 个仓库
Tools that parse native C headers to automatically produce Java JNI bindings with type conversions.
Distinct from Native Header Generators: Distinct from Native Header Generators: generates Java bindings from C headers, not C++ header files for Rust.
Explore 3 awesome GitHub repositories matching programming languages & runtimes · C Header-to-Java Binding Generators. Refine with filters or upvote what's useful.
SWIG is a tool that generates wrapper code to expose C and C++ libraries to a wide range of higher-level programming languages. It reads annotated C/C++ header files and produces language-specific bindings from a single interface definition, supporting languages such as Python, Java, Ruby, C#, Perl, and many others. The generated wrapper code is free from the project's GPL license, allowing users to distribute it under their own terms. The tool handles modern C++ features including templates, namespaces, smart pointers, and constructs up to C++20 through specialized parsing and code generatio
Produces Java Native Interface wrappers allowing Java applications to invoke C/C++ library routines.
LWJGL is a cross-platform library that provides Java bindings to native APIs for graphics, audio, compute, windowing, and input. It enables Java applications to access low-level hardware-accelerated capabilities such as OpenGL and Vulkan rendering, OpenAL 3D audio, OpenCL GPU compute, and GLFW windowing and input handling. Under the hood, LWJGL dynamically resolves native function pointers at runtime, loads platform-specific shared libraries, and uses generated JNI bindings to bridge Java and native code. It offers explicit memory management through direct buffer access and stack-allocated me
Ships a tool that parses C headers to auto-generate Java native bindings and JNI wrappers.
JavaCPP 是一个 JNI C++ 桥接器和外部函数接口,提供绑定生成器、原生库加载器和原生内存管理器。它自动化了在原生 C++ 头文件和共享库周围创建 Java 包装器的过程,以实现两种语言之间的互操作性。 该项目具有一个 C++ 绑定生成器,可解析头文件以自动生成调用原生函数所需的胶水代码和接口。它包含一个原生库加载器,可定位并从类路径中提取特定平台的二进制文件到本地缓存中以供运行时执行。 该系统通过直接指针映射和资源跟踪来管理高性能原生内存访问,以防止内存泄漏。它处理 C++ 数据结构的复杂类型映射,并支持原生回调映射以将函数指针链接到 Java 方法。 该工具集允许使用 C++ 或汇编实现替换托管方法,以优化执行时间并减少资源开销。
Parses C++ header files to automatically generate Java wrapper classes and the corresponding JNI glue code.