Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- linaro@linaro-alip:~/project/libsoc.git/tmpdllholder/tryagain$ ls
- example.c example.i example.o exampleJNI.java example_wrap.o main.class mainn.class
- example.class example.java exampleJNI.class example_wrap.c libexample.so main.java mainn.java
- linaro@linaro-alip:~/project/libsoc.git/tmpdllholder/tryagain$ java -version
- Picked up JAVA_TOOL_OPTIONS: -Dgnu.io.rxtx.SerialPorts=/dev/tty96B0
- openjdk version "1.8.0_141"
- OpenJDK Runtime Environment (build 1.8.0_141-8u141-b15-1~deb9u1-b15)
- OpenJDK 64-Bit Server VM (build 25.141-b15, mixed mode)
- linaro@linaro-alip:~/project/libsoc.git/tmpdllholder/tryagain$ cat main.java
- public class main {
- public static void main(String argv[]) {
- System.loadLibrary("example");
- System.out.println(example.getMy_variable());
- System.out.println(example.fact(11));
- System.out.println(example.get_time());
- }
- }
- linaro@linaro-alip:~/project/libsoc.git/tmpdllholder/tryagain$ javac main.java
- Picked up JAVA_TOOL_OPTIONS: -Dgnu.io.rxtx.SerialPorts=/dev/tty96B0
- linaro@linaro-alip:~/project/libsoc.git/tmpdllholder/tryagain$ java main
- Picked up JAVA_TOOL_OPTIONS: -Dgnu.io.rxtx.SerialPorts=/dev/tty96B0
- 3.0
- 39916800
- Mon Oct 30 21:27:34 2017
- linaro@linaro-alip:~/project/libsoc.git/tmpdllholder/tryagain$
Advertisement
Add Comment
Please, Sign In to add comment