D:\ptc\Windchill_9.0\Windchill\src\liNing\util\PrintOut.java:3: 软件包 com.lcs.w
c.flextype 不存在
import com.lcs.wc.flextype.*;
^
D:\ptc\Windchill_9.0\Windchill\src\liNing\util\PrintOut.java:4: 软件包 com.lcs.w
c.season 不存在
import com.lcs.wc.season.*;
^
D:\ptc\Windchill_9.0\Windchill\src\liNing\util\PrintOut.java:5: 软件包 wt.util
不存在
import wt.util.*;
^
D:\ptc\Windchill_9.0\Windchill\src\liNing\util\PrintOut.java:9: 软件包 com.lcs.w
c.product 不存在
import com.lcs.wc.product.ReferencedTypeKeys;这是错误

解决方案 »

  1.   

    javac -d test.java  在当前目录下
      

  2.   

    你的当前的路径没有加到classpath中吧?在classpath最前面加入.;
      

  3.   

    .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
    这是我的classpath路径
      

  4.   

    你的com.lcs.wc.flextype在那个目录下?
      

  5.   

    你的com.lcs.wc.flextype在那个目录下?
      

  6.   

    在这个目录下面D:\ptc\Windchill_9.0\Windchill\codebase\com\lcs\wc\flextype
      

  7.   

    这样设置环境变量:
    .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;D:\ptc\Windchill_9.0\Windchill\codebase;