• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3186
  • 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
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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