How to bundle model in to an executable Java JAR file?
- 主要言語
- Jupyter Notebook
- スター
- 15.1k
- フォーク
- 1.8k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
I can run the code fine from IDE by referencing model folders placed in REOURCES or SRC folder like these.
**try(Model model = new Model("src/model2");
try(Model model = new Model("resources/model1");**
However,I can't seem to make it work once the code is compiled into an executable JAR file. I need the full thing bundled as a single JAR for my use case.
I tried many ways to reference it including following format
**try(Model model = new Model("jar:file:/Users/..../My_App.jar!/model1");**
How can we point to "resources/model1" so it still works when part of jar file? My project looks like this:
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、issue に示されている Java プロジェクトの構成、特に src/model2 と resources/model1 を調べ、IDE と実行可能な JAR で Model がそれらのパスをどのように読み込むかを比較します。パッケージ化された JAR の失敗を再現し、バンドルされたモデルが正常に読み込まれるために必要なリソースパスまたはパッケージ構成を特定します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- build-system
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 20/100