问class)path为什么不起作用 各位能不能看一看

03-08-16 mushuang
文件内容

代码:

import org.apache.soap.*;

import org.apache.soap.messaging.Message;

public class tt{

tt(){}

int test()

{

ServiceManagerClient sp = new ServiceManagerClient();

return 0;

}

};

编译结果与环境设置 为什么不起作用呢 难道是CLASS_PATH有问题

代码:

E:\>javac tt.java

tt.java:1: package org.apache.soap does not exist

import org.apache.soap.*;

^

tt.java:2: package org.apache.soap.messaging does not exist

import org.apache.soap.messaging.Message;

^

tt.java:8: cannot resolve symbol

symbol : class ServiceManagerClient

location: class tt

ServiceManagerClient sp = new ServiceManagerClient();

^

tt.java:8: cannot resolve symbol

symbol : class ServiceManagerClient

location: class tt

ServiceManagerClient sp = new ServiceManagerClient();

^

4 errors

E:\>echo %CLASS_PATH

%CLASS_PATH

E:\>echo %CLASS_PATH%

.;D:\tools\java\jdk\j2sdk1.4.2\lib;D:\tools\java\jdk\MM7_env\soap-2_2\lib\soap.j

ar;D:\tools\java\jdk\MM7_env\java_xml_pack-winter-01_01-dev\jaxp-1.2-ea1\xerces.

jar;D:\tools\java\jdk\MM7_env\java_xml_pack-winter-01_01-dev\jaxm-1.0.1-ea1\lib\

activation.jar;D:\tools\java\jdk\MM7_env\java_xml_pack-winter-01_01-dev\jaxm-1.0

.1-ea1\lib\mail.jar;E:\lizl\working\tools\EVasp_mm7\lib\vasp.jar

SOAP库不能使用

我想是CLASS_PATH配置有问题

mushuang
2003-08-16 09:05
搞定

CLASS_PATH 写错

猜你喜欢