For the first real JLCA post I thought I would start off with everyone’s favorite HelloWorld.
Java-version:
public class HelloWorld {
public final static String message = "World";
public static void main(String[] args) {
System.out.println("Hello: " + message);
}
Quick pass through the JLCA (Within VS 2003; FileàOpenàConvert. Convert a directory of files. Point to the directory containing HelloWorld.java and convert the project as a Console application.) gives us:
using System;
public class HelloWorld
{
public const System.String message = "World";
[STAThread]
public static void Main(System.String[] args)
System.Console.Out.WriteLine("Hello: " + message);
While we are on the simple stuff let me point out some obvious items that might get lost in more complex examples.
The Extensibility kit: Disclaimer!!! This is a separate tool developed independently from the JLCA and is not owned by MS. This mean MS doesn’t have any control over its development or marketing strategy. I don’t know numbers except that I don’t believe it is free. The 3rd party that built the Extensibility tool is the same 3rd party that wrote the engine to the JLCA. I do work closely with this company on the JLCA but have only played with the Extensibility Kit. Ok enough of that.
The theory is: the Extensibility kit allows the user to create custom mappings for the JLCA. That is, you can override and/or extend the JLCA’s conversion knowledge to cover areas not previously covered or maybe not covered to your liking. A good example would be Layout Managers (another day’s topic for sure). Everett doesn’t support Layout Managers so these can’t be converted from your Swing application. If you wanted to you could buy (or write) a 3rd party Layout Manager DLL in .NET and using the Extensibility kit change the mapping of your Swing app. to use this newly introduced DLL. You could also use the Extensibility kit to modify an existing mapping. If your ever productive dev team has their own special collections package and you want to map all Lists to your SuperList implementation then the Extensibility kit could to that for you at conversion time. And that is Extensibility for the JLCA. Oh, one little side point. The Extensibility Kit creates new mapping DLLs. Those DLLs are used in the conversion process by the JLCA (loaded in addition to the default mapping DLLs). You need the kit to create the DLLs, not to run them. Just to be clear.
Since there is code in this post:
Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Normal disclaimer:
This is my blog, my opinion, and as such is subject to my limitations. Therefore, this posting is provided "AS IS" with no warranties, and confers no rights.