Is there any ubuntu program that converts the program written in C to Java. I know there's an utility that can convert awk script to perl script(a2p).
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
closed as off topic by Mitch, Web-E, Anwar, Scott Severance, Jorge Castro Sep 7 '12 at 2:02
Questions on Ask Ubuntu are expected to relate to Ubuntu within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.
|
Forget it. Yes, it is possible (see for example here). No, it does not make much sense. C is low level, often system specific, often linked to a large number of specific libraries, not object oriented, with manual memory management. What do you need it for? What kind of programs would you like to port to Java? |
|||
|
You can use JNI instead of converting your C code to Java and call your C code in java. You can also use JNA (an easier alternative for JNI). |
|||
|
|