Topic: 关于corejava2中的console如何引入的问题

  Print this page

1.关于corejava2中的console如何引入的问题 Copy to clipboard
Posted by: kenny2005
Posted on: 2005-09-14 20:12

我将console.java用javac命令变为console.class然后放入指定文件夹内(corejava)
然后我设置系统环境,增加classpath=路径指向console.class
然后重起计算机

但是在引入时import corejava.*
编译说不能找到指定的class
是不是我设置有问题?
又或是其他原因?
请指点

2.Re:关于corejava2中的console如何引入的问题 [Re: kenny2005] Copy to clipboard
Posted by: why
Posted on: 2005-09-14 20:33

Is console in a package?
BTW, I believe it should be Console if it is from Core Java.

Perhaps you should show us the source code.

3.Re:关于corejava2中的console如何引入的问题 [Re: kenny2005] Copy to clipboard
Posted by: kenny2005
Posted on: 2005-09-15 11:43

我 将 要引入的类放入 同一文件夹中, 问题解决了, 不用设置环境变量

4.Re:关于corejava2中的console如何引入的问题 [Re: kenny2005] Copy to clipboard
Posted by: bugbug
Posted on: 2005-09-15 15:28

Package problem, import keyword is import a package or a class, you can not jsut put a class into a directory, then you think the dir is the package name.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923