File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "C to Java Conversion" Watch "C to Java Conversion" New topic
Author

C to Java Conversion

Kimberly Porter
Greenhorn

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.


Anrd
"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
Sheriff

Joined: Oct 27, 2005
Posts: 19653
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11160
    
  16

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: C to Java Conversion
 
Similar Threads
can anyone convert c# code to java code
Recursive Descent Parser Question
Mapping of APIs
HTTP 500 error when compiling JSP