Partager via


Support for Consuming .NET Framework Classes 

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.

Example

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

Output

Hello, World!

See Also

Other Resources

Language Support