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 还没有评估数据。