简体   繁体   English

在Eclipse中将Red5服务器作为Java应用程序调试的错误

[英]Bug in debugging Red5 server as Java Application inside eclipse

I am following Red5 Media Server - Workspace Setup Guide - r4737 ! 我正在关注Red5 Media Server-工作区设置指南-r4737

I am able to build Red5 distribution and rename distribution jar files ie completed upto step 6.But when I followed step 7 - Run inside of eclipse failed to debug it as java application - 我能够构建Red5发行版并重命名发行jar文件,即完成第6步。但是当我遵循第7步时- Run inside of eclipse无法将其调试为Java应用程序-

Red5 root: /home/yuvraj/Documents/RED5/red5 java code all/java/server/trunk
Configuation root: /home/yuvraj/Documents/RED5/red5 java code all/java/server/trunk/conf
Red5 server jar was not found, using fallback.
URL list: [file:/home/yuvraj/Documents/RED5/red5%20java%20code%20all/java/server/trunk/red5.jar]
Bootstrap exception: null
Bootstrap exit
java.lang.NullPointerException
    at org.red5.classloading.ClassLoaderBuilder.build(ClassLoaderBuilder.java:172)
    at org.red5.classloading.ClassLoaderBuilder.build(ClassLoaderBuilder.java:96)
    at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:117)
    at org.red5.server.Bootstrap.main(Bootstrap.java:48)

I couldn't find conf directory neither in /home/yuvraj/Documents/RED5/red5 java code all/java/server/trunk/ nor in /Red5_server/bin while setting classpath in java debug. 在Java调试中设置类路径时,在/home/yuvraj/Documents/RED5/red5 java code all/java/server/trunk/ nor in /Red5_server/bin都找不到conf目录。

If you followed step by step the guide, you are probably using the 1.0.2 RC4. 如果您逐步遵循指南,则可能使用的是1.0.2 RC4。 Try this now: 立即尝试:

  • Extract the red5-server-1.0.2-RC4.zip from the target folder to a custom folder (I have it in c:\\red5-server-1.0.2-RC4 ) red5-server-1.0.2-RC4.zip从目标文件夹提取到自定义文件夹(我在c:\\ red5-server-1.0.2-RC4中)

  • Copy red5.jar and bootstrap.jar in the place you extracted red5. red5.jarbootstrap.jar复制到您提取red5的位置。 (In my case c:\\red5-server-1.0.2-RC4\\ ) (在我的情况下为c:\\ red5-server-1.0.2-RC4 \\)

  • Repeat the step 7 in the Guide and be carefull at point L. 重复《指南》中的步骤7,并注意点L。

    conf directory is in \\red5-server-1.0.2-RC4\\ conf目录位于\\ red5-server-1.0.2-RC4 \\

From the output you've shown, I'd assume you're missing the lib directory and its contents. 从显示的输出中,我假设您缺少lib目录及其内容。 This wiki link should help: https://code.google.com/p/red5/wiki/ServerWontStart#Bootstrap_exception 这个Wiki链接应该可以帮助您: https : //code.google.com/p/red5/wiki/ServerWontStart#Bootstrap_exception

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM