Red5无法启动分发

时间:2010-06-05 19:28:42

标签: java windows eclipse red5

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

我正在尝试使用eclipse创建Red5 Distribution,在大纲窗口中右键单击dist [default]并运行as并选择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 . . .

知道可能导致错误的原因吗?

3 个答案:

答案 0 :(得分:1)

有同样的问题。还不明白,但似乎自视频以来事情发生了变化,与我最初通过搜索发现的情况相反。 dist目录的内容是要移动到red5发行版,但可以先运行到dist目录然后输入,     “导出RED5_HOME = pwd”和“./red5.sh”,如http://red5.org/wiki/Download#LatestDevelopmentSourceCode底部所示。 (pwd周围有后退,但是他们被剥离了。)

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

答案 1 :(得分:1)

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

解决了这个问题

答案 2 :(得分:0)

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