2010-06-05 115 views
1

我已经安装了subclipse,Ant,IvyDE,Red5 Plugin for eclipse,我向环境变量添加了JAVA_HOME和JAVA_VERSION,我还在窗口路径中添加了Java和Ant。Red5无法启动分配

我正在尝试使用eclipse创建Red5分布,打开Build.xml,右键单击大纲窗口中的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 . . . 

任何想法可能会导致它错误?

+0

最新的Red5发行版使用Maven而不是蚂蚁 – Ironfish 2013-02-01 13:39:51

回答

1

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

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

0

在eclipse中启动时我们已经看到了问题,但是当从命令提示符/终端从dist目录启动时会发生同样的问题吗?要解决此两种方法是:
1.从命令提示符启动/终端
2.使用RED5插件

1

我有同样的问题与蚂蚁1.7.1编译。使用ant解决它1.8.2