开发者

Error in eclipse : Import javax.sound.sampled.* cannot be resolved

I am trying to run a project in which a file uses the line

import javax.sound.sampled.* ;

When I try to compile it in Eclipse (running on Ubuntu) it shows the error that this line cannot be resolved. Can anyone help me开发者_如何学Python out how to install this package.


Make sure you have the openjdk-6-jdk/default-jdk (karmic and newer) or sun-java6-jdk (karmic and older) package installed. If it's not installed, it should show up in the Package Manager app, or through the aptitude command-line program (aptitude install openjdk-6-jdk)

default-jdk is a newish meta-package that should install the recommended JDK for your system, but this is likely always going to be openjdk-6-jdk, as it's the GPLv2 version of Sun's JDK.


Try this

•Go to Project -> Properties -> Java Build Path •Select Libraries tab •Select the JRE entry •Workspace Default jre -> Finish

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜