943,579 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 13476
  • Java RSS
Jun 17th, 2008
0

Convert Java to C#

Expand Post »
Hi,

Iam new to java as iam working for dotnet C#.
Can any body tell me the software to convert java code to C#.
Please, iam in very much need for it.

Thanks in advance,
Anjali ...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kanjali is offline Offline
13 posts
since Mar 2008
Jun 17th, 2008
0

Re: Convert Java to C#

Who says there is any?

I find it extremely lazy of people to expect there to be software programs that will convert code from one language into code from another. Both languages will have there own idioms, syntax, and "way of doing things", and it is almost guaranteed (regardless of which 2 languages are involved) that a "converter" program would be able to create syntactically correct, and runtime efficient code.

I have seen converters for other languages, and although they created code that was syntactically correct, it was nothing I ever wanted to actually use.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Jun 17th, 2008
0

Re: Convert Java to C#

IF you know C# then you will have little difficulty converting it to java on your own. It will not take you much time to read a few things about java. If you know C# you don't need to learn anything new, just understand a few things about how java works.
If you know C# and you didn't just find someone else's code and you want to convert it to java for your assignment.
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 446
Nearly a Senior Poster
javaAddict is offline Offline
3,258 posts
since Dec 2007
Jun 17th, 2008
0

Re: Convert Java to C#

Click to Expand / Collapse  Quote originally posted by javaAddict ...
IF you know C# then you will have little difficulty converting it to java on your own. It will not take you much time to read a few things about java. If you know C# you don't need to learn anything new, just understand a few things about how java works.
If you know C# and you didn't just find someone else's code and you want to convert it to java for your assignment.
Yeah I agree...

Knowing C# takes some fair Java and C language know-how, along with the idea of delegates, partial classes, unsafe context, "member variables," etc...
Reputation Points: 392
Solved Threads: 108
Posting Shark
Alex Edwards is offline Offline
971 posts
since Jun 2008
Jun 17th, 2008
-1

Re: Convert Java to C#

I been told that if you can get Java application running in Visual J++ VS2005 and VS2008 should do the conversion for you. Reality, I never try it, I love Java too much...
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 871
Code tags enforcer
peter_budo is offline Offline
6,653 posts
since Dec 2004
Jun 18th, 2008
0

Re: Convert Java to C#

Thanks a lot, for suggestions.
I will try to convert it by myself. As it was in very much need and of short time , i thought about some software to convert.
Ya, i will shurly try to do it.

Thanks a lot,
Anjali ..
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kanjali is offline Offline
13 posts
since Mar 2008
Dec 22nd, 2009
0
Re: Convert Java to C#
well what if some one is intrested in writting a module that could actually convert java to C#,
I have got an assignment to write such sw which i am afraid not as simple as its title suggests,,,
i will really appreciate if some one could give me some idea that what will be the starting point for this sw... plz mail me at mian_ghous@yahoo.com , if any one of you have any idea how to do this
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mian_ghous is offline Offline
1 posts
since Jul 2006
Jul 12th, 2010
-2
Re: Convert Java to C#
public String encrypt(String plaintext) throws Exception {
MessageDigest md = null;

md = MessageDigest.getInstance("SHA");

md.update(plaintext.getBytes("UTF-8"));

byte raw[] = md.digest();

String hash = (new BASE64Encoder()).encode(raw);

return hash;
}
Reputation Points: 9
Solved Threads: 0
Newbie Poster
nikhil kawatra is offline Offline
1 posts
since Jul 2010
Jul 12th, 2010
0
Re: Convert Java to C#
What does that have to do with anything.

To ask a question, start a new thread.

Closing this thread.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
This thread is currently closed and is not accepting any new replies.
Previous Thread in Java Forum Timeline: i wanna find the list of users who are not loged in from last 6 months
Next Thread in Java Forum Timeline: java





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC