我已经为 Eclipse 安装了 subclipse、Ant、IvyDE、Red5 插件,我在环境变量中添加了 JAVA_HOME 和 JAVA_VERSION,我还在 windows 路径中添加了 Java 和 Ant。
我正在尝试使用 eclipse 创建 Red5 Distribution,在大纲窗口中右键单击 dist [default] 打开 Build.xml,然后运行并选择 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 . . .
知道什么可能导致它出错吗?