473,396 Members | 1,963 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,396 software developers and data experts.

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 14526
"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******@skynetwork.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******@skynetWORK.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********@bath.ac.uk>:
In comp.lang.java.advocacy phoenix <pa******@skynetwork.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****@earthlink.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...perhaps 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...perhaps 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
In comp.lang.java.advocacy, asj
<as*@xzxx.com>
wrote
on Thu, 07 Aug 2003 00:47:07 -0400
<3F**********@xzxx.com>:
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?


Such an action seems incompatible with "embrace, extend, extinguish".
To be sure, .NET was created by Microsoft, but it is also now a
partial standard (the CLI is, anyway). How a standard can be
patented is beyond me personally.

This could get weird.

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....
Positively cryogenic. :-)

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).
Sun's relationship with JBoss is cool at best, but AFAICT tolerant
to some extent, although I'm not at all sure what's happening
regarding the split.

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


It's partially open-source already, although the license
is a fairly stringent one. However, any debugger showing
source code can look at the Java implementation, and the
src.zip is available, just not modifiable (legally, anyway)
for commercial purposes. (Whether it includes everything
non-native is also not horribly clear -- native is a
different issue and I wouldn't expect the source for that.
At least, not without Java becoming fully GPL or perhaps LGPL.)

--
#191, ew****@earthlink.net
It's still legal to go .sigless.
Nov 15 '05 #11
he Ghost In The Machine <ew***@sirius.athghost7038suus.net> wrote:
In comp.lang.java.advocacy, asj
<as*@xzxx.com>
wrote
on Thu, 07 Aug 2003 00:47:07 -0400
<3F**********@xzxx.com>:
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?


Such an action seems incompatible with "embrace, extend, extinguish".
To be sure, .NET was created by Microsoft, but it is also now a
partial standard (the CLI is, anyway). How a standard can be
patented is beyond me personally.


it is amazing chutzpah, but Microsoft did it. They just declared
the entire structure of their libraries to be patentable and went out
and was awarded a patent. i saw it on line. it is real.

this wasn't even for a slightly clever algorithm to "do" something!

This could get weird.


if it were weird at least it would be entertaining.

it is not.
Nov 15 '05 #12

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

Similar topics

8
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...
5
by: T K | last post by:
Anyone aware of such a converter? Anyone know why SUN is not all over it? tia -t
4
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...
13
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...
8
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
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...
3
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...
4
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...
2
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...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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...
0
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,...

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.