×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / Help me about ArrayList.
    When I complied some examples in <Thinking in java> which included ArrayList , system told me that ' class ArrayList not found in type declaration', what can I do? I 'm using NT+jdk1.2.2 and I have import java.util.* , I also put 'd:\jdk1.2.2\lib\' into CLASSPATH. Thanks a lot.
    • Of course, it is a CLASSPATH issue
      ACTUALLY, in JDK1.2, people do not need
      set CLASSPATH if they do not use third-part class libraries. JDK can find the JDK classes automatically.

      You have set CLASSPATH as
      D:\jdk1.2.2\bin\. This is wrong. It means
      you ask JVM to look up the directories under
      D:\jdk1.2.2\bin\. --- but nothing there.

      Here I suggest a setting
      set CLASSPATH=.; D:\jdk1.2.2\lib\dt.jar; D:\jdk1.2.2\lib\tools.jar;%CLASSPATH%;

      Good luck