Re: C++ to Java Conversion Utility
- From: Ron <bnoronb@xxxxxxxxx>
- Date: Tue, 15 Jan 2008 09:31:55 -0800 (PST)
On Jan 15, 12:08 pm, Ron <bnor...@xxxxxxxxx> wrote:
I'm looking for a utility program that will convert C++ to Java.
I have already searched this group on the topic, but most of the posts
are quite old. I'm wondering if there is more up-to-date info.
I saw one previous post suggesting C2J. I'm going to give that a try,
but based on that thread it looks like the results from C2J may not be
all that useful.
Also, I did read all the advice explaining that a C++ to Java utility
is a bad idea. I am in agreement. But here is my situation:
I work on a tool, written in java, that monitors and displays messages
exchanged between two C++ programs. The number of messages is growing
quite fast, and even the definition for existing messages changes
quite often. Currently I am converting these message definitions by
hand from the original C++ source to java, but I am rapidly becoming
unable to keep up with the changes.
Also, the only things I really need to convert automatically are
header files, and those header files have either:
- a struct that defines the fields in a message
- a enum that specifies the possible values for a field in a message
So I am not trying to convert whole programs...just some fairly simple
type definitions.
Automation would help alot. I'll write my own tool if I need to, but
why re-invent the wheel if I don't need to?
Any advice is appreciated.
I tried C2J, but I'm pretty sure it is not the tool for this job. It
would seem that you need an entire, compilable C project; there is no
single file conversion. And it also seems like you need to add files
to a C2J workspace one at a time (the project I'm trying to convert
has hundreds of files). And it crashes alot. And it won't take .cpp
files...only .c files. Maybe someone out there has looked deeper than
I have, and has discovered other ways to get C2J to convert files.
I'd be interested in knowing if I misunderstood something about how
C2J works.
.
- References:
- C++ to Java Conversion Utility
- From: Ron
- C++ to Java Conversion Utility
- Prev by Date: java Interview Question bank
- Next by Date: Re: C++ to Java Conversion Utility
- Previous by thread: Re: C++ to Java Conversion Utility
- Next by thread: Re: C++ to Java Conversion Utility
- Index(es):
Relevant Pages
|