473,800 Members | 2,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# to JAVA converter?

asj
just read about a person who did work in C# then decided to switch to
java (because he wanted to run his apps in multiple platforms, inc
linux). he mentioned that someone should market a c# to Java converter.

is there any such thing today?

there is almost surely no market for it right now (since there are not
that many mature c# projects around yet), but it might be something to
look at in the medium term future when movements from c# to java
accelerate.
Nov 15 '05 #1
11 14599
"asj" <k@xx.com> wrote in message news:3F******** ***@xx.com...
just read about a person who did work in C# then decided to switch to
java (because he wanted to run his apps in multiple platforms, inc
linux). he mentioned that someone should market a c# to Java converter.
This would be a tall order. The Java base classes are totally different
than the .NET ones in terms of heirarchy and use.
is there any such thing today?


If there is, it most likely produces poor code. Converting Java to C# using
an automated tool, for the reasons noted above, would most likely lead to a
bloated mess. Converting by hand by a skilled coder (i.e. knows both Java
and C# well) is probably currently the best method for conversion. Such a
tool might be viable after a few generations of releases, but I doubt it
could rival hand conversion.

Just my $.02...
Nov 15 '05 #2
Did you try it? I wonder if it can handle unsafe code.

Yves
There's a MSIL to Java source code convertor:

``The language module takes the .Net application's IL (intermediate
language) code and converts it to the Java source code. This module can
be run as a plug-in for Visual Studio.NET, or as a command line
executable. The runtime module replicates the functionality provided by
the .NET class libraries. All the libraries that come with .NET
(including classes such as ADO.NET, XML, SOAP) have been developed
using the Java language.''

http://www.stryon.com/ has more info about this.
--
__________
|im |yler http://timtyler.org/ ti*@tt1.org

Nov 15 '05 #3
In comp.lang.java. advocacy phoenix <pa******@skyne twork.be> wrote:

:> http://www.stryon.com/ has more info about this.

: Did you try it? [...]

No - I have no MSIL.
--
__________
|im |yler http://timtyler.org/ ti*@tt1.org
Nov 15 '05 #4
"phoenix" <pa******@skyne tWORK.be> writes:
Did you try it? I wonder if it can handle unsafe code.


Unsafe code really ought to be turned into C (JNI), but that's
somewhat more complicated. :)
Nov 15 '05 #5
In comp.lang.java. advocacy, Tim Tyler
<ti*@tt1.org>
wrote
on Tue, 5 Aug 2003 21:06:22 GMT
<HJ********@bat h.ac.uk>:
In comp.lang.java. advocacy phoenix <pa******@skyne twork.be> wrote:

:> http://www.stryon.com/ has more info about this.

: Did you try it? [...]

No - I have no MSIL.


http://www.go-mono.net

should take care of that.

--
#191, ew****@earthlin k.net
It's still legal to go .sigless.
Nov 15 '05 #6
asj
The Ghost In The Machine wrote:

: Did you try it? [...]

No - I have no MSIL.


http://www.go-mono.net

LOL! their license even notes that they could radically change the thing
AT ANY TIME if microsoft suddenly PULLS THE RUG from under them with its
patents on .net....what idiot would base their work on a foundation as
legally creaky as that?

microsoft's cash cow is windows and ms office - it would make absolutely
no sense for them to give their developers the freedom to use linux, and
you can bet they'll jerk the noose when the time comes and (1) they
realize most developers aren't going to be fooled by mono; (2) mono
starts cutting into their bottom line - selling new windows server
licenses.

microsoft's relationship with open source is frigid at best....

on the other hand, Java is dominated nowadays by links to open
source...there are literally TONS of open source java implementations
(including tools like IDEs, APIs, libraries, etc), and apache (the open
source organization behind the dominant web server, apache) just
announced it would create the world's second open source j2ee
application server (after JBOSS).

there are even pressures to open source the ENTIRE standard j2se!
Nov 15 '05 #7
asj
asj wrote:
on the other hand, Java is dominated nowadays by links to open
source...there are literally TONS of open source java implementations
(including tools like IDEs, APIs, libraries, etc), and apache (the open
source organization behind the dominant web server, apache) just
announced it would create the world's second open source j2ee
application server (after JBOSS).

there are even pressures to open source the ENTIRE standard j2se!


not that java and open source always stand eye to eye.

i happened upon this really HILARIOUS javablog about yesterday's
decision by apache to create a new open source j2ee app server (which
had previously had only 1 open source example, JBOSS).

the title, appropriately enough, is:

"JBoss takes it up the as*":
http://www.freeroller.net/page/fate/...akes_it_up_the
Nov 15 '05 #8
asj <k@xx.com> wrote in message news:<3F******* ****@xx.com>...
just read about a person who did work in C# then decided to switch to
java (because he wanted to run his apps in multiple platforms, inc
linux). he mentioned that someone should market a c# to Java converter.

is there any such thing today?

there is almost surely no market for it right now (since there are not
that many mature c# projects around yet), but it might be something to
look at in the medium term future when movements from c# to java
accelerate.


There are probably no such products on the market today. Most C#
projects I know of are either "evaluation " ones or are very recent in
terms of finalization. I will agree though that the market for such
might expand when C# projects are more prevalent. On the other hand,
the recent job postings seems to indicate the time when this happens
might be quite far off...the vast majority of .NET projects are
actually ASP.NET or VB.NET...perhap s someone should concentrate on
getting automated converters for these?
Nov 15 '05 #9
asj
luke wrote:
There are probably no such products on the market today. Most C#
projects I know of are either "evaluation " ones or are very recent in
terms of finalization. I will agree though that the market for such
might expand when C# projects are more prevalent. On the other hand,
the recent job postings seems to indicate the time when this happens
might be quite far off...the vast majority of .NET projects are
actually ASP.NET or VB.NET...perhap s someone should concentrate on
getting automated converters for these?

agreed. it will take a while (if ever) for c# to accumulate enough
market to even consider such a project, but it's getting there:

SkillMarket - Languages
A daily look at in-demand tech skills
http://mshiltonj.com/sm/categories/languages/

Programming Language Usage Graph
http://www.cs.berkeley.edu/~flab/languages.html
Nov 15 '05 #10

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

Similar topics

8
5769
by: Dave D | last post by:
I just read something that spooked me. I'm a newbie working my way through "SAMS Teach Youself Java 2 in 21 Days." I used to code a bit in Symantec's Visual Cafe for Java about 3 years ago, but those brain cells are now gone... This book seems to imply that applets built with Java 2 (SDK 1.4) won't run in IE! It says IE only supports Java 1.0 and 1.1. As my primary aim is to build an applet for sharing from my personal web page, I'm...
5
9417
by: T K | last post by:
Anyone aware of such a converter? Anyone know why SUN is not all over it? tia -t
4
6575
by: Stefan Poehn | last post by:
Hi does anybody know a tool that converts Java-Code to C++? I need a very simple converter that does NOT need to cover Threading, Swing, Exceptions, Reflection, RMI, Security, Networking and most of java.util (except LinkedList). It also does not need to cover garbage collection (new is not allowed in the java code that should be converted). TIA
13
28013
by: Ravi | last post by:
Do we have anything that could convert C++ code to java code? To what extent are such tools reliable? TIA. -- main(){char s="sbwjAeftqbnnfe/dpn!ps!CSbwjACjhgppu/dpn"; int i;for(i=0;i<39;putchar(s-1));return 0;}
8
16129
by: Andreas Nauerz | last post by:
Hallo, does anyone know a program able to convert Java sourcecode to C or C++ sourcecode ? Thanks. Regards... P.S.: I am only using standard classes of Java 1.3.1 SE
21
3010
by: Martin Demberger | last post by:
Hi, I'm working on an article about compiling java-sources to c++. I'm interessted if someone would use this to write a program in java (and the good IDE's available for java) and convert this to C++ to get the advantages and speed of this language. mfg Martin Demberger
3
2683
by: mamalyn | last post by:
Could anyone help me? could anyone share with me any source code or program code that outputs a simple converter of java to c or c to java..?please help me, hope you can help as early as now, I really need it badly..Thank you very much.
4
1795
by: Yonih | last post by:
So I am trying to get this Calculator to work. It needs to take in a vaule, and select a shipping Everythin works great except the shipping part. I need it to take the shipping value and add it to the "Downpayment" and also the "Total amount paid" Example: item cost $20.00 , $8.50 shipped selected, Payment 1 = 12 + 8.50 so $20.50 Payments 2-5 = $2.00 Final Payment = $28.50
2
7043
by: yinka90 | last post by:
Hi. I have a problem with my converter. It works fine. the only problem is that it doesnt convert single digit numbers properly. public class Main { /** * @param args the command line arguments */ public static void main(String args){ //throws IOException // TO DO codestatic double toDecimal (String s) int dec;
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10279
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
10255
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10036
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9092
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6815
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
5607
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3765
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2948
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.