Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Sorry for posting again, I'm begginer in this conversion.
Java 1.8 JDK includes the source code of java.
I want to convert it to .Net to work with Java classes (Java.Awt namespace for example) in VB.NET or C#. Users might not need Java installed for this.
This is needed because .Net does not have some things like ByteInputStream.
I know i can use FileStream or StreamReader, but i can't find in them properties like in Java's ByteInputStream.

It's possible to convert? If yes, how? Is there a tool to only convert the syntax without using equivalents?

I used TangibleSoftwareSolutions demo, but it replaces things like java.lang.boolean to System.Boolean, I don't need this.

Thanks in advance!
Posted
Comments
E.F. Nijboer 30-Jul-15 5:05am    
FileStream and StreamReader are actually kind of a design flaw in c#.net. A FileStream is an actual stream but the StreamReader is not. It is a confusing mix of dependencies and the designers of the .net framework admitted that it seemed usefull at the time but didn't work out as they had hoped. So keep that in mind when looking for a way to convet it.

1 solution

This may give you some pointers.

https://msdn.microsoft.com/en-us/library/ms973842.aspx[^]

Read the section, "How to Move Java Applications to the .NET Framework".
 
Share this answer
 
Comments
Adrian Andrei 30-Jul-15 4:55am    
Thanks! After installation of VS2005, I realised J# does not have java.nio, i need the new I/O for ByteBuffer. I tried to convert java source code of java.nio to J# but J# does not have <t> working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900