进口javazoom不能得到解决 [英] The import javazoom cannot be resolved

查看:1818
本文介绍了进口javazoom不能得到解决的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我用的是javazoom.jl.player.Player包,但它表示,进口javazoom不能得到解决。我使用Eclipse和做Android项目。我清理项目仍显示同样的错误。请大家指正。

hi all i use the javazoom.jl.player.Player package but it is says The import javazoom cannot be resolved. i am using eclipse and doing Android project. i clean the project still the same error is shown. please correct me.

推荐答案

如果日食无法解决import语句的包片断,然后它会告诉你(与错误),有在类路径包含来自包中的类(或从包的名称以缺少的一部分开始)。

If eclipse can't resolve a package fragment of an import statement, then it tells you (with that error), that there is no library on the classpath that contains a class from that package (or from a package whose name starts with the missing part).

有关标准Java / Eclipse的一个简单的方法:

An easy way for standard java/eclipse:


  1. 创建在项目的根目录文件夹 LIB (与Eclipse工作台!)

  2. 复制和粘贴罐子到该文件夹​​

  3. 右键单击复制的罐子,然后选择添加到构建路径。

  1. create a folder lib in your projects root directory (with the eclipse workbench!)
  2. copy and paste the jar into that folder
  3. right-click the copied jar and select "add to build path".

这应该立即消除编译器错误。

This should eliminate the compiler errors immediately.

($ P $答案的一部分pvious)

(Previous part of the answer)

以错误信息字面上看,它看起来像你有一个线code这样的:

Taking the error message literally, it looks like you have a line of code like that:

import javazoom;

这是错误的,因为我们没有从包的导入的​​的不过的类。要导入所有类 javazoom 包,我们会说:

This would be wrong, because we don't import packages but classes from a package. To import all classes from the javazoom package, we'd say:

import javazoom.*;

这篇关于进口javazoom不能得到解决的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆