問題タブ [lib]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
142 参照

unix - ant -lib パラメータが Unix で機能しない

ant-contrib を使用して Linux で ant スクリプトを実行しようとしています。antの-libパラメータでjarを指定しているのですが、検出されないようです。

これは私が得る警告です: [taskdef] リソース net/sf/antcontrib/antcontrib.properties から定義をロードできませんでした。見つかりませんでした。

そして、実行するコマンドは次のとおりです。 ant -lib ./lib/ant-contrib.jar -f build-master.xml 絶対パスも指定しようとしましたが、成功しませんでした。

0 投票する
2 に答える
4055 参照

visual-studio - Visual Studio で同じライブラリ/インクルード パスを異なるプロジェクトに追加するスマートな方法

I know the question may seem really noobish, but actually i have pretty huge coding experience, and it's just that i'm pretty new to Visual Studio (installed VS_2017 just few hours ago) and i'm rly struggling with global options now: i can't find a way to specify location of a library(-ies) for different projects.

I know there r 2 options for every project: "C/C++ » General » Additional Include Directories" & "Linker » General » Additional Library Directories", but the thing is that i have 3 libraries (atm) and they used in a bunch of different projects (there will be even more projects loaded via git and they all will be using same 2-3 libs)...

So specifying the same directories for every project manually seems very inefficient to me, but i rly can't find any global option for include/lib paths... I googled 'bout "Tools » Options » Projects and Solutions » VC++ Directories » Include files" but such feature is deprecated in VS 2017.

SO:

  1. i wonder if such feature actually exists in Visual Studio 2017 (or some replacement)
  2. i wonder if there is some sideway like some macro maybe which can add library (previously configured paths) to a project via couple clicks (preferably with RegExp syntax for replacement if there is some path specified for one of libs already)

P.S. i know about Environmental variables in Win OS's, but it's not acceptable for me 'cuz it looks unreasonable to trash it with directories which will be used ONLY by VS IDE!

0 投票する
1 に答える
468 参照

c++ - C++ libcurl ヘッダー - サーバーに認識されない

libcurl を使用して C++ で作業していて、いくつかの API と対話するプログラムを作成していますが、ヘッダーに認証情報を追加する際に行き詰まっています。私は libcurl と API を初めて使用し、C++ の基本的な知識を持っています。認証には、API キーと HMAC_SHA256 でハッシュされた nonce が必要で、それぞれがヘッダーに配置されます。次に、非常に単純な JSON メッセージが送信されます。このサイトを検索してみましたが、ほとんどの例は JavaScript またはコマンド ラインにあるようで、関連する回答はありません。

POST メッセージをサーバーに送信すると、応答 402 - Invalid ApiKey が返されます。私の API キーは 100% 正しいので、書式設定またはヘッダーに含めた方法に関係があると思われます。サイトは BlinkTrade で、そのドキュメントはhereで、ヘッダー要件に関する情報が記載されています。

以下のコード スニペット:

そして、curl_easy_setopt と curl_easy_perform のリターン コード 0 を取得します。APIキーの実際の文字を0のロードに置き換えましたが、それ以外はフォーマットなどの点ですべて同じです。実際にはハッシュ署名を使用していません。これを整理できたら使用します。エラー。コロンの後にスペースを追加し、文字列や値を二重引用符で囲んでみましたが、同じ応答が得られます。私のヘッダーがサーバーによって実際に認識されないということは、何が間違っているのでしょうか?

0 投票する
1 に答える
1581 参照

java - エラー: java.lang.NoClassDefFoundError: 次の解決に失敗しました: Lorg/apache/xmlbeans/XmlOptions;

Apache を使用して Excel にデータを書き込もうとしていますが、この行 XSSFWorkbook workbook = new XSSFWorkbook()でエラーが発生しています。以下にエラー ログを投稿しました。確認してください。

my libsフォルダー: すべてのライブラリーを libs フォルダーに追加します。 ここに画像の説明を入力

私のJavaクラスコード:

以下のようにBuild.gradelファイルを作成します。

誰でも助けてください、事前に感謝します。