2010-06-05 59 views
1

我已經安裝了subclipse,Ant,IvyDE,Red5 Plugin for eclipse,我向環境變量添加了JAVA_HOME和JAVA_VERSION,我還在窗口路徑中添加了Java和Ant。Red5無法啓動分配

我正在嘗試使用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 . . . 

任何想法可能會導致它錯誤?

+0

最新的Red5發行版使用Maven而不是螞蟻 – Ironfish 2013-02-01 13:39:51

回答

1

有同樣的問題。還不明白,但自視頻以來似乎事情發生了變化,與我最初通過搜索找到的內容相反。 dist目錄的內容是要移動到red5發行版的,但可以通過首先更改爲dist目錄運行,然後輸入 「export RED5_HOME = pwd」和「./red5.sh」,如底部的http://red5.org/wiki/Download#LatestDevelopmentSourceCode。 (周圍有反擊,但他們被剝離了這個帖子。)

不是一個真正的答案,但至少有一個線索。我懷疑它與啓動腳本有關,因爲.bat在XP下工作,但是.sh在Ubuntu 10.04中沒有。

0

在eclipse中啓動時我們已經看到了問題,但是當從命令提示符/終端從dist目錄啓動時會發生同樣的問題嗎?要解決此兩種方法是:
1.從命令提示符啓動/終端
2.使用RED5插件

1

我有同樣的問題與螞蟻1.7.1編譯。使用ant解決它1.8.2