I googled a bit but could not find any good Java to C source code converter.
My question is:
Is this possible ?
Are there any reliable Java to C src converter you can think of which I can have a look at?
I googled a bit but could not find any good Java to C source code converter.
My question is:
Is this possible ?
Are there any reliable Java to C src converter you can think of which I can have a look at?
This is possible, but extremely difficult - for starters, you would need to integrate a garbage collector with your C source. There are a few projects that attempt this, e.g. Toba, but they're unreliable and no longer maintained. Usually you'll find somebody attempting something like this in their Master's thesis, after which it is quickly abandoned.
If you're doing this to try to speed up your program, then don't - Java is already pretty fast compared to natively compiled code (although it tends to use quite a bit more memory), and your translated C code is not going to be able to take full advantage of the C language.
Use Java2C
: A translator from Java to C language especially for embedded and fast realtime applications, including a javalike runtime System in C.
You can also try XMLVM, which does not convert java source to C, but Java bytecode (which I believe it is far more useful).
You can have a look here