You should make sure that the compile command to javareg is a single line, you can make a .bat ( batch ) file if you find it easier:
javareg /register /class:ReturnText /progid:StarDeveloper.ReturnText
/typelib:ReturnText.tlb
I tried it on my system after installing MS Java SDK, and it worked the first time. Just make sure there no new lines in the command above ( if you are using a .bat file ).
After that you''''''''ll have to copy the generated class file to winnt/java/trustlib directory according to the package statement in that file. e.g. ReturnText class used in the tutorial doesn''''''''t contain any package statement so it should be moved to winnt/java/trustlib/ directory as winnt/java/trustlib/ReturnText.class.
You can only place your Test.class file in c:\winnt\java\trustlib\Testing\ folder "only if" it contains a package statement "Testing", otherwise place it in /winnt/java/trustlib folder.
Just copy the above command line statement and make a .bat file out of it, making sure all of it comes on a single line and there no new lines. Execute that .bat file from the command prompt and let me know what message you get.