473,796 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 18195
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.co m

"Mike" <no****@nospam. com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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/msdncompositedo c.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.7 D249A00"
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.publi c.dotnet.langua ges.csharp
NNTP-Posting-Host: 193.80.202.62.c ust.bluewin.ch 62.202.80.193
Path: cpmsftngxa10.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP0 9
..phx.gblXref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:2481 36
X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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*****@microso ft.com

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
1601
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 the Encoding class I seem to be having trouble accomplishing it. Bob Rock
0
1386
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 steps. Steps I follows for populating Business Objects is as follows (1) Get a list of records containing various tables joined together from DB using a single PL/SQL (This is a specific requirement, So cannot change the design)
10
3335
by: Bhan | last post by:
Using Ptr of derived class to point to base class and viceversa class base { .... } class derived : public base { .... }
0
2586
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 VS.NET 2003. It works fine.
2
28825
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 most of the same logic and could I use alot of the same code? I noticed in the conversion that alot of the java code remained the same, so how close is Java to C#? is there another tool to do this conversion much cleaner and easier to fix when...
5
3139
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 steps. Steps I follows for populating Business Objects is as follows (1) Get a list of records containing various tables joined together from DB using a single PL/SQL (This is a specific requirement, So cannot change the design)
7
7568
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. Also, I was wondering could there be issues in not making copies when converting??? I was thinking, when "pointing" to the same data with both managed and unmanaged strings/arrays couldn't there be issues such as the garbage collector trying to...
0
1266
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 convert that. Thanks in advance, nizam.
0
1596
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" and viceversa. I found this source: ************************************************************** double dPowI = ceil( log10( (double)iLen / ( ((double)wBitsPerSample / 8 ) + wChannels - 1 ) ) / log10( 2.0 ) ); int iNearTwoPower = (int)pow(...
0
9524
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10217
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.