Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Tool to convert java to c++

Posted on 2013-10-29
6
Medium Priority
?
1,822 Views
Last Modified: 2013-11-19
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
Comment
Question by:FSOFT-SA
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 31

Expert Comment

by:Zoppo
ID: 39608065
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
 
LVL 9

Assisted Solution

by:masheik
masheik earned 300 total points
ID: 39608198
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
 
LVL 86

Expert Comment

by:CEHJ
ID: 39608222
I want to convert my java source code to c++ one.
Why? ;)
0
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 

Author Comment

by:FSOFT-SA
ID: 39608347
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
 
LVL 12

Accepted Solution

by:
Sharon Seth earned 400 total points
ID: 39611282
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
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 300 total points
ID: 39611468
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

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question