Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 568
no9 Avatar asked Apr 23 '13 07:04

no9


2 Answers

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.

like image 148
Murali Avatar answered Sep 27 '22 23:09

Murali


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?

like image 28
no9 Avatar answered Sep 27 '22 23:09

no9