Click to See Complete Forum and Search --> : Java to C++ translator tool


whyasker
April 27th, 2010, 01:14 PM
Hi, all!

I am wondering if there is any tool which is able to convert Java to C++ code?

It is a simple Java program with 6-7 classes. NONE of them imports any Java libraries and that is why I hope that such tool does exist. I am a complete beginner in C++ and I need the translation for a school project.

It is not even necessary to translate directly from Java to C++. If there is a tool which first translates from Java to third programming language (like Python or smth else), and then to C++, that would be just perfect.

Any ideas would be appreciated!

nuzzle
April 27th, 2010, 02:59 PM
Any ideas would be appreciated!


Why don't you take this opportunity to learn a little C++?

dlorde
April 27th, 2010, 04:56 PM
I am a complete beginner in C++ and I need the translation for a school project.

Doesn't this suggest to you that this exercise is part of your education? What will you learn if someone else does it for you?

Any ideas would be appreciated!

Do what Nuzzle suggested.

Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris...
Larry Wall

David Anton
April 27th, 2010, 04:58 PM
Google on "java to c++ converter".
(you'll see us - any Java code not dependent on Java libraries shouldn't be a problem).