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

Convert C# to Java (and viceversa)

P: n/a

Hi,

Does anyone know of reliable programs that convert C# to Java and viceversa?

Thanks
Mike

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


P: n/a
Mike,

I don't believe it is possible. Given that Java and C# use different
underlying class libraries (for which there is not always a one-to-one
relationship to), it would be very difficult, to say the least.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mike" <no****@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Hi,

Does anyone know of reliable programs that convert C# to Java and viceversa?

Thanks
Mike
Nov 16 '05 #2

P: n/a
For converting Java to C# you should look at Microsoft Java Language Conversion
Assistant. The version 3 beta does alot of the grunt work and anything that
can't be migrated cleanly is listed for you to resolve. As for the other way
around I'm not sure whats available.

http://msdn.microsoft.com/vstudio/do...s/jlca/30beta/
Nicholas Paldino [.NET/C# MVP] wrote:
Mike,

I don't believe it is possible. Given that Java and C# use different
underlying class libraries (for which there is not always a one-to-one
relationship to), it would be very difficult, to say the least.

Hope this helps.

Nov 16 '05 #3

P: n/a
Mike,

Microsoft has the Java Language Conversion Assistant (JLCA) that enables
developers to migrate their existing Java code to C# on the .NET Framework.
It can be found at:
http://msdn.microsoft.com/downloads/.../sample.asp?ur
l=/msdn-files/027/001/867/msdncompositedoc.xml. The JCLA is about a 8MB
download.
More information concerning this effort can be found at:
http://msdn.microsoft.com/visualj/jump/default.asp.

However, the reverse, a C# to Java is not yet here but I found an attempt.
Please view the Power Point presentation at:
http://www.cit.co.cr/Presentations/D...00,20,Security, it describes
a Java implementation of the .Net Framework in which both VB.Net and C# may
be converted to Java. It has a host of supportingURLs
--------------------
From: "Mike" <no****@nospam.com>
Subject: Convert C# to Java (and viceversa)
Date: Tue, 1 Jun 2004 00:00:45 +0200
Lines: 46
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_000E_01C4476B.7D249A00"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.132
Message-ID: <#l**************@TK2MSFTNGP09.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: 193.80.202.62.cust.bluewin.ch 62.202.80.193
Path: cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP09
..phx.gblXref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.csharp:248136
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi,
Does anyone know of reliable programs that convert C# to Java and viceversa?Thanks
Mike


Cheers,

johnKn [MS-SDK]

-Please do not send email directly to this alias. This alias is for
newsgroup purposes only

-This posting is provided “AS IS” with no warranties, and confers no rights.

-To provide additional feedback about your community experience please send
e-mail to: sd*****@microsoft.com

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.