2013-07-10 32 views
2

您好,我想問一個關於非官方軸2/c的問題。非官方軸測試例2/c

我安裝了最新版本,並試圖運行示例「ExampleJsonEchoClient」(在https://code.google.com/p/axis2c-unofficial/wiki/ExampleJsonEchoClient找到) 而在本地主機頁面加載,有檢查按鈕,有上點擊時沒有反應。

在同一個頁面上的導向有這一步:「下載的jquery到該目錄,並將它命名的jquery.js」,並提供了一個鏈接:http://jquery.com/download/

哪個版本我應該下載?我應該命名整個文件夾jquery.js?或者在名爲jquery的文件夾中使用文件?

在此先感謝。

編輯: 謝謝!這工作!

古怪我現在要安裝的Axis2/C非官方到另一臺計算機

當有安裝問題我也跟着指示,但收到以下錯誤消息

json/axis2_json_writer.c: In function 'axis2_json_writer_get_json_string': 
json/axis2_json_writer.c:173:64: error: 'JSON_C_TO_STRING_PLAIN' undeclared 
(first use in this function) 
json/axis2_json_writer.c:173:64: note: each undeclared identifier is reported only once for each function it appears in 
make[7]: *** [axis2_json_writer.lo] Error 1 
make[7]: Leaving directory `/home/.../axis2c-unofficial/src/core/transport/http/sender' 
make[6]: *** [all-recursive] Error 1 
make[6]: Leaving directory `/home/.../axis2c-unofficial/src/core/transport/http/sender' 
make[5]: *** [all-recursive] Error 1 
make[5]: Leaving directory `/home/.../axis2c-unofficial/src/core/transport/http' 
make[4]: *** [all-recursive] Error 1 
make[4]: Leaving directory `/home/.../axis2c-unofficial/src/core/transport' 
make[3]: *** [all-recursive] Error 1 
make[3]: Leaving directory `/home/.../axis2c-unofficial/src/core' 
make[2]: *** [all-recursive] Error 1 
make[2]: Leaving directory `/home/./axis2c-unofficial/src' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory `/home/.../axis2c-unofficial' 
make: *** [all] Error 2 

我不知道這一點。 ..

回答

0

您可以使用任何目錄結構,但echo.html預計jquery.jsecho.jsecho.html位於同一目錄中。

即路徑可以在echo.html被容易地改變,但是在該示例的目錄結構是簡單的,即,所有的文件(echo.htmljquery.jsecho.js)是內部/var/www/json-echo/目錄。

/var/www/json-echo/ 
       echo.html 
       echo.js 
       jquery.js 

要使用JSON工作,你可以使用jQuery(1 x或2.X),壓縮或解壓縮,任何現代版爲您的口味。下載後jquery-x.xx.x(.min).js將其重命名爲jquery.js(或編輯echo.html)。

書面上jquery.org/download網站有除了IE支持版本1.x和2.x之間沒有特定的差異:

的jQuery 2.x中具有相同的API爲jQuery的1。 x,但不支持 Internet Explorer 6,7或8.

+0

感謝您的回覆!它工作,但我編輯原來的,因爲現在我面臨另一個問題 – nvesyrop

+0

可能,你忘了從github安裝json-c,或者你有兩個版本的json-c(1.它附帶操作系統並安裝,2.從源代碼安裝碼)。嘗試刪除系統開發包(例如:'sudo apt-get remove libjson0-dev')。 – loentar