package single;
// this is a sample java class to be compiled with any java byte code compiler
// for example gcj or jdk's javac and could be run by our java

public class Sigclass{
    public void foo(String args[])
    {
	System.out.println("Hello world!\n Sigclass Argument Vector passed:");
	System.err.println("Hello world!\n Sigclass Argument Vector passed: 2");
        // this would cause a runtime error when statically linked
	// is it just not implemented or is it a general problem with static linking
	// and java classes loaded at runtime using native methods ?
	// java.lang.UnsatisfiedLinkError: getLength
	// is
	for (int i=0;i<args.length;++i)
	    System.out.println(args[i]);
    }

    public static void main(String args[]) {
	Sigclass x = new Sigclass();
	x.foo(args);
    }
}
