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 / September 2003

Tip: Looking for answers? Try searching our database.

C++ to Java converter?

Thread view: 
Kokkinaki Alexandra - 16 Sep 2003 07:10 GMT
Hello,
can anyone tell me where can i find a C++ to Java converter?
Jelle Maybach - 16 Sep 2003 17:00 GMT
> Hello,
> can anyone tell me where can i find a C++ to Java converter?

Such a beast would be hard to develop... Think about preprocessor,
enumerations, typedefs, templates, exceptions (ok, they do exist in
both languages - but you don't need to declare them in c++), pointers
(and pointer-arithmetics), ...
And how about the different libraries? Standard includes? I've
never seen a STL in Java (without templates...), for example.

Forget it ;-)

Jelle
Robert Klemme - 16 Sep 2003 15:43 GMT
> > Hello,
> > can anyone tell me where can i find a C++ to Java converter?
[quoted text clipped - 7 lines]
>
> Forget it ;-)

http://www.scicontrols.com/R2J/R2J.html
http://www.cs.ucdavis.edu/~devanbu/dp.tex.pdf
http://www.mathtools.net/Java/Utilities/C_and_C++/ (C2J translator)
http://tech.novosoft-us.com/product_c2j.jsp

http://dmoz.org/Computers/Programming/Languages/Java/Development_Tools/Translato
rs/Other_To_Java/

http://www.google.com/search?q=%22c%2B%2B+to+java+translator%22
...

   robert
Jelle Maybach - 16 Sep 2003 15:52 GMT
> http://www.scicontrols.com/R2J/R2J.html
> http://www.cs.ucdavis.edu/~devanbu/dp.tex.pdf
[quoted text clipped - 4 lines]
> http://www.google.com/search?q=%22c%2B%2B+to+java+translator%22
> ...

Oops.

But did you try any of these in a real-world project? It will be no
problem to convert a "Hello World" from any language to Java - But how
about a (typical) application, which makes use of any of the above
mentioned language features?

Jelle
Robert Klemme - 17 Sep 2003 11:31 GMT
> > http://www.scicontrols.com/R2J/R2J.html
> > http://www.cs.ucdavis.edu/~devanbu/dp.tex.pdf
> > http://www.mathtools.net/Java/Utilities/C_and_C++/ (C2J translator)
> > http://tech.novosoft-us.com/product_c2j.jsp

http://dmoz.org/Computers/Programming/Languages/Java/Development_Tools/Translato
rs/Other_To_Java/

> > http://www.google.com/search?q=%22c%2B%2B+to+java+translator%22
> > ...
>
> Oops.

:-)

> But did you try any of these in a real-world project? It will be no
> problem to convert a "Hello World" from any language to Java - But how
> about a (typical) application, which makes use of any of the above
> mentioned language features?

I would not claim that there is no human work needed after such a
conversion.  In fact in a typical project there's lots to do.  But having
the syntax converted automatically saves quite some time.

Regards

   robert
Costis Aivalis - 17 Sep 2003 19:27 GMT
I think that the "C++ to Java converter"  must be a _physical person_
and not a program. There are many C++ implementations and
to make things more complicated, C++ programmers usually depend on
system-calls.
People back in the 80's were trying to find a Pascal to C converter.
Nothing worked well enough to rely upon on industry level.

greetings
Costis Aivalis
Guillaume - 17 Sep 2003 10:05 GMT
> can anyone tell me where can i find a C++ to Java converter?

You may try Alma.
http://www.memoire.com/guillaume-desnoix/alma/

No preprocessor, you have to use cpp before. And only language
translation (no lib). Anyway it was usefull on some projects.
Roedy Green - 17 Sep 2003 21:14 GMT
>can anyone tell me where can i find a C++ to Java converter?

Why are you converting?

If you want something written in idiomatic Java, easy to maintain,
fast, small etc. then there is a good chance you will want to redesign
the app to suit Java's class libraries and Java's way of doing things.

You can farm that work out. I do it on a fixed contract basis.  So do
thousands of programmers in India.  This is very safe work to farm
out.  It is abundantly clear what the program is supposed to do.

If you just need something in a hurry, with no budget, that will let
you get your product working on a new platform, then perhaps the
automated tools will be helpful.

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.


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.