By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,458 Members | 1,435 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,458 IT Pros & Developers. It's quick & easy.

compiling C# to Java byte code

P: n/a
I heard there is an add on for Visual Studio .net that will allow C# to
create Java byte code. Does anyone have the URL for the project?


Nov 15 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Bootstrap Bill <wr*******@yahoo.com> wrote:
I heard there is an add on for Visual Studio .net that will allow C# to
create Java byte code. Does anyone have the URL for the project?


I haven't heard of any such thing, and I'd be surprised if it existed,
given that C# doesn't have checked exceptions, and *does* have
properties etc. It would have to be extremely limited, at least.

There *is* a Java to C# conversion tool in VS.NET 2003, however.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2

P: n/a
C# properties compile to a get_PropertyName... set_PropertyName internally.
So it wouldn't be too hard to make such a utility.

Thanks,
Shawn
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
Bootstrap Bill <wr*******@yahoo.com> wrote:
I heard there is an add on for Visual Studio .net that will allow C# to
create Java byte code. Does anyone have the URL for the project?


I haven't heard of any such thing, and I'd be surprised if it existed,
given that C# doesn't have checked exceptions, and *does* have
properties etc. It would have to be extremely limited, at least.

There *is* a Java to C# conversion tool in VS.NET 2003, however.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 15 '05 #3

P: n/a
Shawn B. <le****@html.com> wrote:
C# properties compile to a get_PropertyName... set_PropertyName internally.
True. Properties was a bad choice. Delegates and events are better
examples. You *could* possibly do something with interfaces, but it
would be truly foul (and you'd have to do something interesting for
delegates which ended up being static methods).
So it wouldn't be too hard to make such a utility.


Well, you'd need to know what to do with *all* the .NET types used by
the program. Even the J# converter doesn't do a brilliant job, and Java
1.1 was tiny compared with the .NET framework. Even if theoretically
possible, it would be nightmarishly difficult for a very small
audience, IMO.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.