473,395 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Convert C# to Java (and viceversa)


Hi,

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

Thanks
Mike

Nov 16 '05 #1
3 18157
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bob Rock | last post by:
Hello, a simple question (if you know the answer) ... how to convert from and array of bytes to a string (and viceversa). I haven't the conversion to be simple ... but even using the Convert or...
0
by: Shibu | last post by:
Hi, I have a situation where I need to convert business objects to a flat table. The reverse is also required. I am using c# and Oracle ODP. I am looking for an easier method to do the below...
10
by: Bhan | last post by:
Using Ptr of derived class to point to base class and viceversa class base { .... } class derived : public base { .... }
0
by: Chua Wen Ching | last post by:
Hi there, I had downloaded the Java Language Conversion Assistant 2.0 from http://msdn.microsoft.com/vstudio/downloads/tools/jlca/. I had installed it and it was suppose to integrate to...
2
by: Barney | last post by:
I have to convert a Java app to .NET, i found and used the conversion tool which converts java to C#, but it only converted about 10% of it, how hard would it be to re-write the java app and keep...
5
by: Shibu | last post by:
Hi, I have a situation where I need to convert business objects to a flat table. The reverse is also required. I am using c# and Oracle ODP. I am looking for an easier method to do the below...
7
by: Bob Rock | last post by:
Hello, converting from the managed to the unmanaged world (and viceversa strings) and byte arrays is something I do often and I'd like to identify the most correct and efficient way to do it....
0
by: nizam | last post by:
Hi, i am able to convert java console app to .NET console app. but i am unable to convert java web based application to .NET web based application. can u give me some idea as to how to...
0
by: tarlino | last post by:
Hi! I'm play with the sound generation (c++ and directX). Now I would like to manage same filter on my sample. But now I must to convert my audio buffer "BYTE" (from DirectX) to an arry of "short"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.