Eclipse missing imports (javax.media.* and com.sun.media.*)

no9 picture no9 · Apr 23, 2013 · Viewed 27.3k times · Source

I have this old java applet that i need to debug, yet i have some problems with import.

The import javax.media.* cannot be resolved.
The import com.sun.media.* cannot be resolved

After some research i tried adding this external libs to the project - with no success.

  1. sun-jai_codec.jar from http://www.java2s.com/Code/Jar/s/Downloadsunjaicodecjar.htm

  2. installed JMF2.1.1e and added the jmf.jar.

I had no luck with this... so im asking some one for a little help!

enter image description here

Answer

Murali picture Murali · Apr 23, 2013

Just build the path of your project again. Right click on the project and then select build path--->configure build path--->java build path---->libraries

select all jars and then remove and then add all jars including the jars of your project.

then click ok. then go to order and export and click all the options. then click ok.