Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / February 2006

Tip: Looking for answers? Try searching our database.

c++ to java conversion software

Thread view: 
pradeep - 14 Feb 2006 05:57 GMT
i am searching for a software that converts a c++ code into a java
code. Can any find this to me please
Roedy Green - 14 Feb 2006 09:43 GMT
>i am searching for a software that converts a c++ code into a java
>code. Can any find this to me please

The two languages are superficially similar, but you do things quite
different ways.  e.g. layouts instead of absolute positioning, and
Collections instead of rolling your own.

It would be very hard to do an automated translation that worked
properly.

You can convert some sorts of code just by compiling your C in Eclipse
and gradually fixing the "errors".  If you see a pattern, do a global
search/replace.

Most of the C addressing operators can either be deleted or replaced
with . and all works.

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Wojtek Bok - 14 Feb 2006 14:52 GMT
>>i am searching for a software that converts a c++ code into a java
>>code. Can any find this to me please
>
> It would be very hard to do an automated translation that worked
> properly.

And don't forget about operator overloading.....

[shudder]
Robert Klemme - 14 Feb 2006 15:35 GMT
>  >
>>> i am searching for a software that converts a c++ code into a java
[quoted text clipped - 4 lines]
>
> And don't forget about operator overloading.....

Having said that there are tools out there that do a rough basic
translation of syntax.  How much work is left depends on the source code
at hand (e.g. heavy use of C++ templaces and multiple inheritance makes
efforts approach those of a rewrite from scratch very fast).

Regards

   robert


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.