我使用axis2-1.5 中的wsdl2java 生成了.java 文件。现在它在这个文件夹结构中生成了文件:src/net/mycompany/www/services/
services 文件夹中的文件是:SessionIntegrationStub 和 SessionIntegrationCallbackHandler。
我现在想使用网络服务。我将 net 文件夹添加到 CLASSPATH 环境变量中。我的 java 文件现在使用以下命令导入 web 服务:
import net.mycompany.www.services;
public class test
{
public static void main(String[] args)
{
SessionIntegrationStub stub = new SessionIntegrationStub();
System.out.println(stub.getSessionIntegration("test"));
}
}
现在,当我尝试使用以下方法编译它时:
javac test.java
我得到:包 net.mycompany.www 不存在。
任何想法?