f******g 发帖数: 423 | 1 详情如下:
我需要import 一个叫 cs1.Keyboard 的 class.
这个不在java standard package里,是某人自己写的.
在网上找到了它,然后把keyboard.jar copy to \j2sdk1.4\lib,
成功.(under winXP)
但当我在另外一台机器上(win98)尝试时,
同样的方法却不work.我气起来把keyboard.class
keyboard.java, keyboard.jar (解压后是keyboard.class)
到处都拷了一份,还是不行.What should I do? | b*e 发帖数: 3845 | 2 either setup classpath like
classpath=.../j2sdk1.4\lib\keyboard.jar
or copy it to
j2sdk1.4\jar\lib\ext\
good luck
【在 f******g 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 详情如下: : 我需要import 一个叫 cs1.Keyboard 的 class. : 这个不在java standard package里,是某人自己写的. : 在网上找到了它,然后把keyboard.jar copy to \j2sdk1.4\lib, : 成功.(under winXP) : 但当我在另外一台机器上(win98)尝试时, : 同样的方法却不work.我气起来把keyboard.class : keyboard.java, keyboard.jar (解压后是keyboard.class) : 到处都拷了一份,还是不行.What should I do?
| g*****g 发帖数: 34805 | 3
\cs1\
【在 b*e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : either setup classpath like : classpath=.../j2sdk1.4\lib\keyboard.jar : or copy it to : j2sdk1.4\jar\lib\ext\ : good luck
| m******t 发帖数: 2416 | 4
ft, shouldn't you guys be telling him *not* to put it under j2sdk1.4/lib
to begin with?
【在 g*****g 的大作中提到】![](/moin_static193/solenoid/img/up.png) : : \cs1\
| g*****g 发帖数: 34805 | 5 No, we like quick and dirty, hehe.
【在 m******t 的大作中提到】![](/moin_static193/solenoid/img/up.png) : : ft, shouldn't you guys be telling him *not* to put it under j2sdk1.4/lib : to begin with?
| f******g 发帖数: 423 | 6
两种方法听来都很有道理.不过就是不work.
跟我以前装过低版本的java有关吗?
【在 g*****g 的大作中提到】![](/moin_static193/solenoid/img/up.png) : No, we like quick and dirty, hehe.
|
|