Reputation: 11
I want to call the opensource MATIEC Compiler from my Java program.I have seen a lot of tutorials related to JNI(Java Native Interface) but all the examples and tutorial only deal with very simple HelloWorld programs.I want to know that for the large code like MATIEC Compiler how I can access that program from java? I have tried the JNI tutorial and I understand this example completely.But I am confused in how to deal a large source code file.
Upvotes: 0
Views: 2410
Reputation: 13435
If you are looking for more complex tutorial, take a look here:
You have even recipe for adapting C++ code:
https://github.com/mkowsiak/jnicookbook/tree/master/recipes/recipeNo025
and you have sample where you can get familiar with concepts of accessing object's fields, etc.
http://jnicookbook.owsiak.org/recipe-No-020/
All sorts of topics that are real life examples and not just simple Hello World
. Even though it starts with Hello World
.
Upvotes: 1