VB.NET to Java Conversion?

wfunction

Well-known member
Joined
Oct 31, 2006
Messages
46
Programming Experience
1-3
Does anyone know of a FREE VB.NET to Java converter?
 
Why does it matter?

Why does it matter? A few files with a long code... :)
 
wfunction, is this for a release app? Why on earth would you want to trust a free converter even if there was one. Even the ones you can buy don't get it right so i can only imagine what kind of a mess a freeware one would make. If you can't do it yourself then i suggest you buy one but good luck with the conversion issues. Java's coding standards are strict, comparable to c#, infact even more so. Either way it is going to be a lot of work, when you may just as well hire a experienced Java programmer to convert it for you at least then you would get the benefit of properly written Java code which a converter could never do.
 
I'm not too bad at conversion

Well, I already did convert one of my programs to Java - it's not that I will trust the program, I just don't want to put all the semicolons and change all the capitalization - like LastIndexOf to lastIndexOf... The program which I converted took a few hours, and I only program for fun, so I don't want it to take that long.
 
Case conversions arent the only aspect of the matter.. What VBN calls a StringBuilder Sun's Java calls a StringBuffer for example.

When you say Java, are you talking about Sun's Java, or Microsoft's J#?
 
Sun Java (Sorry, VB.NET Forum)

I mean Sun Java..
I don't want a great converter, but simply one that will just fix the semicolons, capitalizations, etc., and not mess up the other stuff too much.
 
I'm not sure I understand. Sun's java doesnt contain the same objects that a VB.NET program does so what are you hoping a converter that "doesnt mess up the other stuff too much" will achieve?

If you want to put a semicolon on the end of every line, or lowercase everything after a . then you can do that with find and replace..

Please rephrase your question because you do not appear to be seeking a VBN to Java converter at all?
 
or he could write his own program to handle this, because a few things do stay capitalized, and some do not.

such as Integer in java is int
Double is double
String is String
System.out.println (the "L" in println should be capitalized but they didnt)

java is weird when it comes to capitalization, they say they have a standard yet, the creators didnt follow their own standard
 
well, Ln isn't a word so you could maybe forgive them for not making it capitalised. Additioanlly, java is high in vitamin-C, so functions like scanf, printf etc will ahve influenced the choice of capitalization.

One thing that did bug me, and in MS too, is the use of acronyms like HTTP, become HttpRequest, XmlStream.. Something wrong with HTTPRequest?

All languages have ambiguity - VB lets us call functions without including brackets, and it uses () to mean "array" and also "function"
New String() - is that an array or a string object? I'm not sure - in c# i could say for sure its a string bject with a zero-argument constructor
 
I know...

I know that they do not have the same objects, but I only need the ones that they do share, like String, Graphics, etc.
 
Back
Top