Click here to Skip to main content
12,241,975 members (44,422 online)
Rate this:
 
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 3:02am
Comments
Sergey Chepurin 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 7-Jun-11 14:05pm
   
Correct. I would make it the answer.
--SA
Albert Holguin 7-Jun-11 12:04pm
   
curious, why would you want to convert c++ to java?
SAKryukov 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 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 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 8-Jun-11 3:19am
   
This is a good comment and should be used as an incentive to perform a manual system overhaul.
SAKryukov 8-Jun-11 18:49pm
   
:-)
Albert Holguin 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 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 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 13 Mar 2015
Copyright © CodeProject, 1999-2016
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