mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
turn java code into a package
This commit is contained in:
parent
3991c334f7
commit
31195b405c
4 changed files with 14 additions and 7 deletions
12
examples/jvm-interop/javaSource/HelloJNI.java
Normal file
12
examples/jvm-interop/javaSource/HelloJNI.java
Normal file
|
@ -0,0 +1,12 @@
|
|||
package javaSource;
|
||||
|
||||
public class HelloJNI {
|
||||
static {
|
||||
System.loadLibrary("demo");
|
||||
}
|
||||
public native String sayHello(int num);
|
||||
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new HelloJNI().sayHello(420));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue