This documentation is archived and is not being maintained.

Support for Consuming .NET Framework Classes

Visual Studio 2005

The Visual J# compiler supports the use of any .NET Framework library API that conforms to the common language specification (CLS). A sample "Hello, World!" program that uses .NET Framework classes is shown below.

// vjc_consume_netfx.jsl
// Contains the Console class.
import System.*;
public class Hello
{
    public static void main(String[] args)
    {
        Console.WriteLine("Hello, World!");
    }
}

Hello, World!
Show: