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

2019-01-19 06:13发布

问题:

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!

回答1:

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.



回答2:

Sheez .. this was stupid.

Its a big MESS with this old classes/jar files. It turned out i had the wrong ones...

Found them here (links in the answer):

Where can I download Jai and Jai-imageio?