Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2182
  • Last Modified:

Tool to convert java to c++

Dear Experts,

I want to convert my java source code to c++ one.
Is there any tool supporting us doing this.
Please help.

Regards.
0
FSOFT-SA
Asked:
FSOFT-SA
3 Solutions
 
ZoppoCommented:
Hi FSOFT-DA,

did you already try to google for it? I.e. if you goole convert java to c++ you get lot of hits, beyond them link to tools like J2C (http://code.google.com/a/eclipselabs.org/p/j2c/).

ZOPPO
0
 
masheikCommented:
Hi,

Believe it or not conversion from one Programming language to another using some tool won't work great,
i tried few things earlier like matlab to c , perl to c , swig etc but none of them helped .

For code modification of converted code becomes very complex, anyway you will find n number of tools if you google it as zoppo said earlier
0
 
CEHJCommented:
I want to convert my java source code to c++ one.
Why? ;)
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
FSOFT-SAAuthor Commented:
Thank all for your comments.

I did google already.
But there're plenty of tools.

About J2C, I did try. And I thought it's generated code is not a native C code style (I think).

I also try this, http://www.tangiblesoftwaresolutions.com/Product_Details/Java_to_CPlusPlus_Converter_Details.html, it's generated code looks better.
But I must buy it.
To buy is OK, but it's better to listen to experienced people.

So, if you already used such a tool, please give me advices.

@CEHJ: it's just a requirement :).

Regards.
0
 
Sharon SethCommented:
If it's a requirement , then probably you should be 'porting' code to C++ , rather than 'converting' . IMO converters are a good choice when you are converting IDLs , not when you are porting systems
0
 
CEHJCommented:
Indeed. A converter that hasn't had a great number of man hours invested in it is more than likely going to mangle your code.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now