A First Look at Visual J# for .NET
Microsoft's JUMP to .NET promises tools to migrate Java programs to C# as well as support for the Java SDK class library. When news of Visual J# reached my ears, I had to check it out (update: The Visual J# Beta 1 page is now live). The first thing I tried was Hello, World:
The compiler that comes with Visual J# is
Curious to see what's going on under the hood, I examined Hello.exe using ildasm:
Well, there's some Java types in there, no doubt about that. A peek at \Program Files\Microsoft Visual J# .NET\Framework\sdk\bjlib.dll shows there is a whole lot of Java-compatibility going on:
Figure 1. Some familiar package names.
I figured I'd try compiling one more program, so I grabbed the NervousText applet from the Java distribution and added some scaffolding so I could compile it into an executable. For good measure, I called into the .NET Framework Class Libraries to determine the operating system version:
It worked - freaky! Although the .NET Framework Class Libraries are similar in some ways to Java, this seems like quite a feat to me. At the very least, it was probably a ton of work; writing hundreds of wrapper classes doesn't seem like the most exciting chore to me. Still, this is weird, a bit useful, and sure to stir up some healthy controversy. For some insight into the work that went into this, see this link. The Microsoft India site has more details.
Figure 2. Jumpin' Java!
Brian Jepson is an O'Reilly editor, programmer, and co-author of Mac OS X Panther for Unix Geeks and Learning Unix for Mac OS X Panther. He's also a volunteer system administrator and all-around geek for AS220, a non-profit arts center in Providence, Rhode Island. AS220 gives Rhode Island artists uncensored and unjuried forums for their work. These forums include galleries, performance space, and publications. Brian sees to it that technology, especially free software, supports that mission. You can follow Brian's blog here.
Comments on this weblog
Return to weblogs.oreilly.com.