All Projects → Larpon → jni

Larpon / jni

Licence: MIT license
V wrapper around the C Java Native Interface

Programming Languages

V
68 projects
c
50402 projects - #5 most used programming language
AMPL
153 projects

Projects that are alternatives of or similar to jni

vredis
Redis client for V, written in V
Stars: ✭ 43 (+186.67%)
Mutual labels:  v, vlang, vlang-module
termtable
Simple and highly customizable library to display tables in the terminal.
Stars: ✭ 41 (+173.33%)
Mutual labels:  v, vlang
vave
🌊 A crazy simple library for reading/writing WAV files in V. Zero dependencies, 100% cross-platform.
Stars: ✭ 35 (+133.33%)
Mutual labels:  v, vlang
v2048
A simple game of 2048, written in V.
Stars: ✭ 19 (+26.67%)
Mutual labels:  v, vlang
vbf
A brainfuck interpreter/compiler written in V.
Stars: ✭ 17 (+13.33%)
Mutual labels:  v, vlang
minesweeper-v
Minesweeper Written in Vlang
Stars: ✭ 19 (+26.67%)
Mutual labels:  v, vlang
kate-syntax-highlight-v
Syntax highlighting of V files for the Kate editor
Stars: ✭ 17 (+13.33%)
Mutual labels:  v, vlang
viup
A V wrapper for the cross-platform UI library, IUP.
Stars: ✭ 36 (+140%)
Mutual labels:  vlang, vlang-module
v-mode
🌻 An Emacs major mode for the V programming language.
Stars: ✭ 49 (+226.67%)
Mutual labels:  v, vlang
registry
Package registry for vpkg
Stars: ✭ 13 (-13.33%)
Mutual labels:  v, vlang
vast
A simple tool for vlang, generate v source file to AST json file
Stars: ✭ 23 (+53.33%)
Mutual labels:  v, vlang
reflect
🪞 Runtime reflection for V (vlang)
Stars: ✭ 26 (+73.33%)
Mutual labels:  vlang, vlang-module
discord.v
Discord Bot Framework written in V
Stars: ✭ 83 (+453.33%)
Mutual labels:  v, vlang
Inline Java
Haskell/Java interop via inline Java code in Haskell modules.
Stars: ✭ 197 (+1213.33%)
Mutual labels:  interoperability, jni
boundstone
High Performance / Fast Compilation / Lightweight MCBE Server
Stars: ✭ 42 (+180%)
Mutual labels:  v, vlang
vinix
Vinix is an effort to write a modern, fast, and useful operating system in the V programming language
Stars: ✭ 1,512 (+9980%)
Mutual labels:  v, vlang
jisoni
A native JSON parser written in pure @vlang/v
Stars: ✭ 13 (-13.33%)
Mutual labels:  vlang, vlang-module
vargs
Simple argument parsing library for V.
Stars: ✭ 36 (+140%)
Mutual labels:  v, vlang
terra-java
Lua/Terra + Java Native Interface
Stars: ✭ 20 (+33.33%)
Mutual labels:  jni, java-native-interface
speckle-unity
AEC Interoperability for Unity through Speckle
Stars: ✭ 28 (+86.67%)
Mutual labels:  interoperability

JNI wrapper for V

V wrapper around the C Java Native Interface

This is Work-In-Progress - things will break and things will change.

You will need a working install of the V compiler and a working Java JDK environment (version >= 8).

Install

git clone https://github.com/Larpon/jni.git ~/.vmodules/jni

Quick start

To use jni it is required to set the JAVA_HOME env variable to point to a valid Java install path that hosts the JNI you want to use.

export JAVA_HOME=/path/to/java/root

Desktop

To build the desktop example do:

cd ~/.vmodules/jni/examples/desktop/v_as_library
v run build.vsh

The build.vsh script is a simple helper for doing:

export JAVA_HOME=/detect/path/to/java/root
export LD_LIBRARY_PATH="$(pwd)":$LD_LIBRARY_PATH # Needed for Java to load the shared library
v -prod -shared libvlang.v
javac io/vlang/V.java
java io.vlang.V

Android

The jni module supports Java interoperability with both Desktop and Android platforms.

To build the Android example you'll need a working version of vab.

Then simply do:

./vab ~/.vmodules/jni/examples/android/toast
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].