Eclipse 缺少导入(javax.media.* 和 com.sun.media.*) [英] Eclipse missing imports (javax.media.* and com.sun.media.*)

查看:46
本文介绍了Eclipse 缺少导入(javax.media.* 和 com.sun.media.*)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个旧的 Java 小程序需要调试,但我在导入时遇到了一些问题.

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 来自 http://www.java2s.com/Code/Jar/s/Downloadsunjaicodecjar.htm

安装了 JMF2.1.1e 并添加了 jmf.jar.

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

我对此不太走运……所以我向某人寻求帮助!

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

推荐答案

只需重新构建您的项目路径.右键单击项目,然后选择构建路径--->配置构建路径--->java构建路径---->库

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

选择所有 jar,然后删除并添加所有 jar,包括项目的 jar.

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.

这篇关于Eclipse 缺少导入(javax.media.* 和 com.sun.media.*)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆