我正在开发一个网站,需要一个功能来让用户使用他们的网络摄像头捕捉特定主题的意见并将其上传到服务器。经过简短的调查和查看类似这个问题的答案后,我没有更多的选择:
- 我不能使用 Flash 媒体服务器(预算不够)
- 我不能使用 Red5,因为托管应用程序的服务器无法构建或安装它。(我们的服务器管理员告诉我,Red5 最后更新于 2007 年,他收到一些错误信息,以下是错误详细信息(如果有人能提供修复方法的话))。
还有其他选择吗?
red5 安装错误:
xxyyzz@zzyyxx ~/red5 $ sh red5.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org/red5/server/Standalone
Caused by: java.lang.ClassNotFoundException: org.red5.server.Standalone
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.red5.server.Standalone. Program will exit.
xxyyzz@zzyyxx ~/red5 $ ant prepare
Buildfile: /home/xxyyzz/red5/build.xml
[echo] java.home is /usr/lib64/icedtea6/jre and the target version is 1.6
prepare:
[mkdir] Created dir: /home/xxyyzz/red5/bin
[mkdir] Created dir: /home/xxyyzz/red5/dist
[mkdir] Created dir: /home/xxyyzz/red5/bin/testcases
[mkdir] Created dir: /home/xxyyzz/red5/bin/testcases/testreports
BUILD SUCCESSFUL
Total time: 1 second
xxyyzz@zzyyxx ~/red5 $ ant build
Buildfile: /home/xxyyzz/red5/build.xml
[echo] java.home is /usr/lib64/icedtea6/jre and the target version is 1.6
BUILD FAILED
Target "build" does not exist in the project "RED5".
Total time: 1 second