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 out how to install this package.
Make sure you have the
openjdk-6-jdk/default-jdk(karmic and newer) orsun-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-jdkis 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.