Reputation: 737
hi i would like to incorporate assembly language code with java.. guys give me some idea and example programs like hello world because assembly language is new to me..
Upvotes: 1
Views: 1311
Reputation: 115328
The "right" solution is JNI or JNA.
But then it depends on your code. If for example you wish to call command line utility compiled to native code (and it does not matter which language was used for coding of this utility) call it by invocation of command line (use either Runtime.exec()
or ProcessBuilder
. If it is a library use JNI/JNA. If this is not just a library but for instance MS COM component (ActiveX) use one of available java interoperability projects like Jawin, Jintegra, Jinterop etc.
Upvotes: 4