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

冷暖自知 提交于 2019-11-27 06:14:45

问题


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?



来源:https://stackoverflow.com/questions/16163524/eclipse-missing-imports-javax-media-and-com-sun-media

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!