Red5 无法开始分发
我已经为eclipse安装了subclipse、Ant、IvyDE、Red5插件,我将JAVA_HOME和JAVA_VERSION添加到环境变量中,我还将Java和Ant添加到Windows路径中。
我正在尝试使用 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 . . .
知道什么可能导致它出错吗?
I have installed subclipse, Ant, IvyDE, Red5 Plugin for eclipse, I added JAVA_HOME and JAVA_VERSION to environmental variables, I also added Java, and Ant to the windows path.
I am attempting to create a Red5 Distribution by using eclipse, opening Build.xml right clicking dist [default] in the outline window and running as and selecting Ant Builder.
Eclipse says that the build is Successful. I first stop the Red5 Service, and then I attempt to run the build I create in eclipse it fails, below are the errors that display in the command prompt.
I was hoping someone else might have run into a similar issue before.
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 . . .
Any idea what might be causing it to error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有同样的问题。还不明白,但自从视频发布以来,情况似乎发生了变化,与我最初通过搜索发现的相反。 dist 目录的内容旨在移动到 red5 发行版,但可以通过首先更改为 dist 目录,然后输入来运行:
“export RED5_HOME=
pwd
”和“./red5.sh”,如 http://red5.org/wiki/Download#LatestDevelopmentSourceCode。 (pwd 周围有反勾号,但它们被从这篇文章中删除了。)这并不是真正的答案,但至少是一条线索。我怀疑它与启动脚本有关,因为 .bat 在 XP 中工作,但 .sh 在 Ubuntu 10.04 中不起作用。
Had the same problem. Don't understand yet, but seems things have changed since the videos, and contrary to what I initially found by searching. Contents of the dist directory are meant to be moved to a red5 distribution, but can be run by first changing into the dist directory, then entering,
"export RED5_HOME=
pwd
" and "./red5.sh", as suggested at the bottom of http://red5.org/wiki/Download#LatestDevelopmentSourceCode. (there are back-ticks around the pwd, but they got stripped out of this post.)Not really an answer, but at least a clue. I'm suspecting it has something to do with the startup scripts, because the .bat worked in XP but the .sh didn't in Ubuntu 10.04.
我在使用 ant 1.7.1 编译时遇到了同样的问题。使用ant 1.8.2解决了这个问题
I had the same problem compiling with ant 1.7.1. Solved it using ant 1.8.2
我们在 Eclipse 中启动时遇到了问题,但是当您从命令提示符/终端从 dist 目录启动时是否会出现相同的问题?解决此问题的两种方法是:
1. 从命令提示符/终端启动
2.使用red5插件
We have seen issues when starting within eclipse, but does the same issue occur when you start from the dist directory from a command prompt / terminal? Two ways to resolve this are:
1. Launch from a command prompt / terminal
2. Use the red5 plugin