954,184 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Java to C# Conversion

Hi,

I'm new to this site so quite unfamiliar with how things work....

I have recently begun learning about C# and the .Net framework. As a java programmer, I found C# a good basis to start on. I wanted to change a lot of my existing code from Java to C#, and was told that the Java Language Conversion Assistant (JLCA) was a good place to start. I successfully changed over a lot of my code, however, I came across a problem with one part. The error I am getting is:

"java.lang.ThreadGroup could not be converted"

And it then tells me that "In the .NET Framework, there is no direct equivalent."

When trying to compile this code, I receive the error:

"The type or namespace name 'ThreadGroup' could not be found (are you missing a using directive or an assembly reference?)".

Would anyone have any thoughts or ideas on how to solve this problem? I have tried various methods but have yet to come across a successful one....

Thanks a million :rolleyes:

-C

C#_Virgin
Newbie Poster
1 post since Mar 2004
Reputation Points: 10
Solved Threads: 0
 

Google Search: Threading in C# :cool:

Also, just wondering if you realized that .Net has J# - Java 1.1 for .NET :idea:

Tekmaven
Software Architect
Moderator
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
 

well if your working under .net frame work you can see that it has the J# language, it also have an itermediate language which is higher level than assembly, it might be helpful looking at it and its not that difficult if you concentrate a bit ;)

Decency
Newbie Poster
22 posts since Aug 2004
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You