旧的java程序没有正确编译?

时间:2012-05-16 18:45:16

标签: java import jar external

我不确定,但我认为是因为我的导入声明。

原来是:

  

import net.danielmor.engine.*;

当我把它改为:

  

import net.danielmor.engine.Game;

它突然起作用,是"外卡"加载库中的所有类现在已弃用?这已经工作了一年多了,现在我打开它一段时间后没有看到它,它也没有正确编译。

编辑:编译器错误

cannot access Game bad class file: 
  c\users\dani\documents\projects\java projects\game engine\net\danielmor\engine\Game.class   
  please remove or make sure it appears in the correct subdirectory of the classpath." 

它在正确的目录中。通过导入特定的类,它可以工作,但是应该导入所有类,这是最初编写代码的方式。

0 个答案:

没有答案
相关问题