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.
-paulzhou(alwaysbeginner);
2000-11-3
{288}
(#13019@0)
-
Of course, it is a CLASSPATH issueACTUALLY, 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
-jabber(jabber);
2000-11-3
{449}
(#13054@0)