1

我已经为 Eclipse 安装了 subclipse、Ant、IvyDE、Red5 插件,我在环境变量中添加了 JAVA_HOME 和 JAVA_VERSION,我还在 windows 路径中添加了 Java 和 Ant。

我正在尝试使用 eclipse 创建 Red5 Distribution,在大纲窗口中右键单击 dist [default] 打开 Build.xml,然后运行并选择 Ant Builder。

Eclipse 说构建成功。我首先停止 Red5 服务,然后尝试运行我在 eclipse 中创建的构建失败,以下是命令提示符中显示的错误。

我希望其他人之前可能遇到过类似的问题。

Starting Red5
Red5 root: C:/Users/Admin/workspace/temp/red5_server/dist
Configuation root: C:/Users/Admin/workspace/temp/red5_server/dist/conf
Setting temp directory to C:\Users\Admin\AppData\localLow
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
        The import org.slf4j.bridge cannot be resolved
        The import org.springframework.context.support.FileSystemXmlApplicationC
ontext cannot be resolved
        SLF4JBridgeHandler cannot be resolved
        FileSystemXmlApplicationContext cannot be resolved to a type
        FileSystemXmlApplicationContext cannot be resolved to a type

        at org.red5.server.Launcher.<init>(Launcher.java:25)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:132)
        at org.red5.server.Bootstrap.main(Bootstrap.java:50)
Press any key to continue . . .

知道什么可能导致它出错吗?

4

3 回答 3

1

有同样的问题。还不明白,但自从视频以来,情况似乎发生了变化,与我最初通过搜索发现的相反。dist 目录的内容将被移动到 red5 发行版,但可以通过首先进入 dist 目录,然后输入“export RED5_HOME= pwd”和“./red5.sh”来运行,如底部建议的那样http://red5.org/wiki/Download#LatestDevelopmentSourceCode。(密码周围有反引号,但他们被从这篇文章中删除了。)

不是真正的答案,但至少是一个线索。我怀疑它与启动脚本有关,因为 .bat 在 XP 中工作,但 .sh 在 Ubuntu 10.04 中没有。

于 2010-06-22T06:17:05.340 回答
1

我在用 ant 1.7.1 编译时遇到了同样的问题。使用 ant 1.8.2 解决了它

于 2011-09-06T00:54:35.117 回答
0

我们在 eclipse 中启动时遇到了问题,但是当您从命令提示符/终端的 dist 目录启动时是否会出现同样的问题?解决此问题的两种方法是:
1. 从命令提示符/终端启动
2. 使用 red5 插件

于 2010-09-05T19:17:51.167 回答