Java Red5无法启动分发

Java Red5无法启动分发,java,windows,eclipse,red5,Java,Windows,Eclipse,Red5,我已经为eclipse安装了subclipse、Ant、IvyDE、Red5插件,我将JAVA_HOME和JAVA_VERSION添加到环境变量中,我还将JAVA和Ant添加到windows路径中 我试图通过使用eclipse创建一个Red5发行版,打开Build.xml,右键单击outline窗口中的dist[default],运行为并选择Ant Builder Eclipse说构建是成功的。我首先停止Red5服务,然后尝试运行在eclipse中创建的构建,但失败了,下面是命令提示符中显示的错

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

我试图通过使用eclipse创建一个Red5发行版,打开Build.xml,右键单击outline窗口中的dist[default],运行为并选择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 . . .
启动红色5
Red5 root:C:/Users/Admin/workspace/temp/Red5_server/dist
配置根目录:C:/Users/Admin/workspace/temp/red5\u server/dist/conf
将临时目录设置为C:\Users\Admin\AppData\localLow
线程“main”java.lang中出现异常。错误:未解决的编译问题:
无法解析导入org.slf4j.bridge
导入org.springframework.context.support.FileSystemXmlApplicationC
无法解析上文本
无法解析SLF4JBridgeHandler
无法将FileSystemXmlApplicationContext解析为类型
无法将FileSystemXmlApplicationContext解析为类型
位于org.red5.server.Launcher.(Launcher.java:25)
位于sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)
在sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
在sun.reflect.delegatingConstructor或AccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
位于java.lang.reflect.Constructor.newInstance(Constructor.java:513)
位于java.lang.Class.newInstance0(Class.java:355)
位于java.lang.Class.newInstance(Class.java:308)
位于org.red5.server.Bootstrap.Bootstrap(Bootstrap.java:132)
位于org.red5.server.Bootstrap.main(Bootstrap.java:50)
按任意键继续。

知道是什么导致了错误吗?

也有同样的问题。我还不明白,但自从这些视频以来,情况似乎发生了变化,这与我最初通过搜索发现的情况相反。dist目录的内容将移动到red5发行版,但可以通过先更改为dist目录,然后输入, “export RED5_HOME=
pwd
”和“/RED5.sh”,如图底部所示。(pwd周围有背面的记号,但它们被从这篇文章中去掉了。)


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

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

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

最新的Red5分布使用Maven而不是ant