Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
I want convert c++ Program to java Program...
is there any softwares are available for that..
could anyone suggest me to convert that files into java...
Posted 7-Jun-11 2:02am
Comments
Sergey Chepurin at 7-Jun-11 8:46am
   
Automated conversion is only possible (and has some sense) for .NET languages VB.NET<->C# as they share the same classes. You will have to manually convert C++ code to Java, but i think it would be easier to write Java program from the scratch.
SAKryukov at 7-Jun-11 14:05pm
   
Correct. I would make it the answer.
--SA
Albert Holguin at 7-Jun-11 12:04pm
   
curious, why would you want to convert c++ to java?
SAKryukov at 7-Jun-11 14:08pm
   
Why not? Multi-platform version of the code, byte-code would work without re-compilation, can be deployed as applet... makes sense.
--SA
Albert Holguin at 7-Jun-11 15:13pm
   
well, pure c++ is also cross platform, just requires the recompilation... but if you already have it in one, don't know how much benefit there is to reinvent the wheel
SAKryukov at 7-Jun-11 17:07pm
   
Who knows... Well, I generally quite skeptical about all those "conversions" (what an abuse of this term here by Inquirers!) -- translations. I think just the opposite -- if there is a chance to re-write something, it can be used. Good projects I know was written twice. Those who pretend they do it once in fact usually fall into infinite "fixes" and "improvements" and never finishes... Sad.
--SA
Niklas Lindquist at 8-Jun-11 3:19am
   
This is a good comment and should be used as an incentive to perform a manual system overhaul.
SAKryukov at 8-Jun-11 18:49pm
   
:-)
Albert Holguin at 7-Jun-11 20:14pm
   
BTW, most "code converters" don't work all that great... you'll end up having to interpret gibberish, you're better off doing it yourself.
SAKryukov at 8-Jun-11 18:50pm
   
If you look at my comment above (to the comment by Niklas): re-writing has great benefits.
--SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

It is possible to run native code from java. Have a look at Java Native Interface[^]. That doesn't answer your question, but it might be a way to solve your problem.
  Permalink  
Comments
SAKryukov at 7-Jun-11 14:07pm
   
Reasonable alternative, my 5. As to "conversion" (there is no "convert", come on!), I agree with Sergey Chepurin (his comment to the question on top).
--SA
Niklas Lindquist at 7-Jun-11 16:48pm
   
I agree, thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 447
1 CPallini 355
2 OriginalGriff 245
3 George Jonsson 159
4 Abdul Samad KP 135
0 OriginalGriff 6,344
1 Sergey Alexandrovich Kryukov 5,860
2 CPallini 5,125
3 George Jonsson 3,559
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 28 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100