// This file was created by `gcjh -stubs'. -*- c++ -*- // // This file is intended to give you a head start on implementing native // methods using CNI. // Be aware: running `gcjh -stubs ' once more for this class may // overwrite any edits you have made to this file. #include #include #include // Includes I have added #include #include #include void HelloWorld::print () { /* Original automatically created stub code was: throw new ::java::lang::UnsupportedOperationException (JvNewStringLatin1 ("HelloWorld::print () not implemented")); */ java::lang::System::err->print (JvNewStringLatin1 ("Thread \"")); java::lang::System::err->print ((java::lang::Thread::currentThread())->toString()); java::lang::System::err->println (JvNewStringLatin1 ("\" says using CNI: Hello World!")); }