java - Red5 无法开始分发

标签 java windows eclipse red5

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

我正在尝试通过使用 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 . . .

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

最佳答案

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

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

关于java - Red5 无法开始分发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2981755/

相关文章:

python - cvxopt 构建轮失败 - 无法找到 vcvarsall.bat

.net - 获取当前登录的远程机器的交互式用户?

java - ElidedSemicolonAndRightBrace expected

带锁的 Java 条件

java - MySql Java : Weird issue that I can not solve

c++ - 链接到使用 cygwin 在 Ubuntu 中编译的 .o 文件

java - 没有 Thread.sleep Webdriver IE 将给出 “unable to find element” 异常

java - 为什么我不能在 Eclipse 中新建的 maven webapp 项目中使用 New->Source Folder?

java - 使用多个 jar 运行执行

java - SimpleDateFormat Parse 不以所需格式返回日期