JNR VS JavaCPP

Compare JNR vs JavaCPP and see what are their differences.

JNR

Java Abstracted Foreign Function Layer (by jnr)

JavaCPP

The missing bridge between Java and native C++ (by bytedeco)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • Onboard AI - ChatGPT with full context of any GitHub repo.
  • WorkOS - The modern API for authentication & user identity.
JNR JavaCPP
1 8
1,186 4,309
1.3% 0.9%
5.9 7.6
7 days ago 10 days ago
Java Java
GNU General Public License v3.0 or later GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

JNR

Posts with mentions or reviews of JNR. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-04-11.
  • Does Java 18 finally have a better alternative to JNI?
    5 projects | dev.to | 11 Apr 2022
    Another popular option is Java Native Runtime (JNR). Though not as widely used or mature as JNA, it's much more modern and has better performance than JNA for most use cases. However, there are some cases where JNA might perform better.

JavaCPP

Posts with mentions or reviews of JavaCPP. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-27.

What are some alternatives?

When comparing JNR and JavaCPP you can also consider the following projects:

JNA - Java Native Access

SWIG - SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.

Cython - The most widely used Python to C compiler

cppimport - Import C++ files directly from Python!

djinni

Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.

Deep Java Library (DJL) - An Engine-Agnostic Deep Learning Framework in Java

nbind - :sparkles: Magical headers that make your C++ library accessible from JavaScript :rocket:

nelson - Nelson numerical interpreter

jnativehook - Global keyboard and mouse listeners for Java.

v8pp - Bind C++ functions and classes into V8 JavaScript engine