应该是所要引用包的上一级目录,即d:\struts\org\apache(如果下一级就是包的话)

解决方案 »

  1.   

    classpath的目的应该是让系统知道这个path下有class文件吧
    偶这么认为的
      

  2.   

    按理应该是这样的。在出错的环境里测试一下classpath是否设置进去了:
    System.out.print(System.getProperty("java.class.path")+"==================");检测目录是否有大小写问题
      

  3.   

    如果指定目录的时候应该制定到完整的路径:比如class位于d:\struts\org\apache\struts下,就应该制定为d:\struts\org\apache\struts,而不是d:\struts,如果还包括d:\struts\org\apache\XXX.class,就应该加上d:\struts\org\apache,指定jar就要包括完整的路径和文件名c:\app\jbl.jar