jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes C to Java Conversion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "C to Java Conversion" Watch "C to Java Conversion" New topic

C to Java Conversion

Kimberly Porter

Joined: Jun 01, 2011
Posts: 1
Are there any good tools out there for C to Java Conversion?
Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

I am unaware of any, but as a layman I would be surprised if there are.
The two languages are quite different.

"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
Atul Darne
Ranch Hand

Joined: Jul 05, 2009
Posts: 118

even if you get tool, you will have to cleanup later.

better to recode!

Regards, Atul.
I came to this world on a Learner's License
Rob Spoor

Joined: Oct 27, 2005
Posts: 20279

The syntax is very similar, but there are too many differences. For instance, C allows you to access memory directly, and perform pointer arithmetic; neither is possible in Java. Also, C has unsigned data types which are not present in Java. Well, there's one: Java's char is is a rough equivalent of C's unsigned short.

How To Ask Questions How To Answer Questions
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11957

the best tool would be your brain.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
I agree. Here's the link: http://aspose.com/file-tools
subject: C to Java Conversion
jQuery in Action, 3rd edition