• com.sun.tools cannot be resolved to a type in StubGenerator.java

    By navy cui 6 months ago

    When I run this script on notes designer 9.0.1,There is error in StubGenerator.java,it looks like can not find jar file,How to fixed the problem,Please send me message when you see my question,thanks.Below is script what I talked.

            try {
               // if we can't see the new files on the classpath, we'll get package not found errors!
                String[] args = new String[fileNames.length + 2];
                args[0] = "-classpath";
                args[1] = ".;" + f.getParent() + ";" + f.getParentFile().getParent() + ";" + baseDir;
                for (int i = 0; i < fileNames.length; i++)
                    args[i+2] = fileNames[i];
                com.sun.tools.javac.Main javac = new com.sun.tools.javac.Main();
                result = javac.compile(args, pw);
            } catch (Exception e) {
                emsg = e.getMessage();
    • By Julian Robichaux 5 months ago

      This error probably has to do with changes to the IBM JVM in current versions of Notes/Domino.

      Anyone using Domino 8.0 or higher should use the built-in web service consumer functionality instead of Stubby. That is both supported by IBM and native to Notes. Here is a link to the help docs to get you started:


      You should be able to find some examples with a google search. Good luck!