6

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

no9
  • 6,424
  • 25
  • 76
  • 115
  • 1
    can you mention what errors you getting? or warnings? – Murali Apr 23 '13 at 07:39
  • Try refreshing your project and then cleaning it. Sometimes eclipse does not pickup changes in files. Are those two files in your .classpath file ? – nikkatsa Apr 23 '13 at 07:40
  • Murali .. the errors are abvious (import cannot be resolved) – no9 Apr 23 '13 at 07:44
  • nikkatsa ... probably not as i downloaded them and just used "Add external JARs". I have tried clean/refresh/rebuild/reopen ... no luck. – no9 Apr 23 '13 at 07:44
  • never addexternal jars. just create a folder lib in ur project then copy the jars and add it. – Murali Apr 23 '13 at 08:11

2 Answers2

6

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.

Murali
  • 774
  • 6
  • 12
  • Tried that ... no luck. Im starting to belive that the jar files do not contain the classes i am missing. How can i check what packages and classes are in jar file... – no9 Apr 23 '13 at 07:58
  • 1
    its easy just open that jar using the winrar or 7zip and extract it – Murali Apr 23 '13 at 08:07
  • thanks for your time and help! Will accept your answer anyways! – no9 Apr 23 '13 at 11:38
1

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?

Community
  • 1
  • 1
no9
  • 6,424
  • 25
  • 76
  • 115