问题描述
我是一个对编程知识不多的程序员,但是我想导入名为 com.googlecode.lanterna.terminal
的Lanterna(GUI控制台库)软件包.但是当我这样做
I'm a programmer with little knowledge about programming, but I wanted to import the package for Lanterna (a gui console library) called com.googlecode.lanterna.terminal
But when I do
import com.googlecode.lanterna.terminal;
它说它解析为一个包而不是一个类型.
It says it resolved to a package and not a type.
我不确定是否将.jar文件放在正确的位置...有人可以告诉我我做错了什么以及如何解决?
I'm not sure if I even put the .jar file in the right place... Can someone tell me what I'm doing wrong and how to fix it?
推荐答案
下载Lanterna软件包.
Download the lanterna package.
在Eclipse中选择您的项目,然后右键单击属性->转到库->添加jar文件--->选择Lanterna jar文件
In Eclipse select your project and right click properties-->go to libraries--->add jar file--->select lanterna jar file
这篇关于如何在Eclipse中将Lanterna包导入Java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!