2012-07-24 41 views
0

我從http://code.google.com/p/restful-dds/downloads/list網站下載restful-dds-1.0-src.tgz文件。我正在使用Linux環境。從ReadMe.txt文件中,我執行chatter應用程序(CHATROOM TEST)到腳本/ startRESTfulDDS.sh,並從http://ipaddress:8182/static/ajaxTest.html查看html文件。之後「通過運行腳本/ Chatter {sh,bat}來運行Tutorial目錄中的Chatter應用程序。」在這裏我的問題出現了。我無法在Tutorial文件夾中看到腳本文件夾和chatter.sh文件。請幫助我做錯了什麼。Restful DDS執行

我使用opensplice DDS V5.5

GWT2.4.0, 
JDK 1.6, 
Restlet v2.0.14, 
Gson v2.2.2 

回答

1

I am not able to see scripts folder and chatter.sh file inside the Tutorial folder

所創建的是OpenSpliceDDS教程的精確副本,在$OSPL_HOME/examples/dcps/standalone/Java/Tutorial發現Tutorial文件夾。在resful-dds README和本教程中的描述之間似乎存在不匹配,因爲確實沒有chatter.sh。然而,有Tutorial目錄,說明如何運行ChatterREADME.txt

Chatter [userid] [username] 
    userid: an integer number that uniquely identifies the sender of a message 
      (Transmit a message with userid = -1 to terminate the MessageBoard.) 
    username: the user-name other chatters will see when they receive one of your 
      chat messages. 

The executables classes are located in the chatroom package, but should be 
started from the current directory in the following way: 
... 
java -classpath $OSPL_HOME/jar/dcpssaj.jar:bld chatroom.Chatter 1 Bill 

根據這一程序,你應該能夠運行Chatter。當然,您應該先運行ospl start來初始化基礎架構。

順便說一句,您不需要運行本教程的java版本 - 任何支持的語言都應該這樣做。 OpenSpliceDDS安裝本身應該爲您提供有關針對不同語言運行Chatter的更多信息。寧靜的DDS web服務將接收在DDS總線上找到的任何數據,並通過HTTP公開它,無論使用何種語言編寫原始進程。

+0

當我嘗試運行restful-dds-1.1內部的構建文件時顯示一些運行時錯誤,如「java.lang.incompatibleclasschangeerror:found interface com.google.gwt.core.ext.typeinfo.jclasstype,but class was expected」error occurred。 – Bathakarai 2012-07-24 11:38:21

+0

好的,我對此一無所知。我從答案中刪除了這個評論。 – 2012-07-24 12:30:50