代码之家  ›  专栏  ›  技术社区  ›  Case

RED5无法开始分发

  •  1
  • Case  · 技术社区  · 16 年前

    我已经安装了Eclipse的子clipse、Ant、IvyDE、ReD5插件,我在环境变量中添加了JavaHOHE和JavaAX版本,我还添加了Java和ANT到Windows路径。

    我正试图使用Eclipse创建一个red5发行版,打开build.xml,右键单击Outline窗口中的dist[默认值],然后运行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 回复  |  直到 13 年前
        1
  •  1
  •   jcartland    16 年前

    有同样的问题。还不明白,但自从视频之后,事情似乎发生了变化,与我最初通过搜索发现的相反。dist目录的内容将被移动到red5发行版,但可以先更改为dist目录,然后输入, “导出Red5_主页= pwd “和”./red5.sh“,如下面建议的 http://red5.org/wiki/Download#LatestDevelopmentSourceCode . (在pwd周围有反勾号,但是他们被从这个帖子中删除了。)

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

        2
  •  1
  •   LuigiB    14 年前

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

        3
  •  0
  •   Paul Gregoire    15 年前

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