A JNI error has occurred, please check your installation and try again
时间: 2023-09-24 18:05:18 浏览: 146
"A JNI error has occurred, please check your installation and try again"这个错误通常是由于javac与java版本不同导致的。你可以分别使用"javac -version"和"java -version"命令来检查你的JDK版本。确保你使用的是相同版本的JDK进行编译和运行。另外,还有可能是缺少某些类库或依赖项导致的。根据你提供的错误信息,可能是缺少了"com/mashape/unirest/http/exceptions/UnirestException"这个类。你可以检查一下你的项目配置,确保所有的依赖项都正确添加,并且相关的类库都被正确引入。如果还是无法解决问题,可以尝试重新安装JDK并配置好环境变量。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Error: A JNI error has occurred, please check your installation and try again](https://blog.csdn.net/weixin_42376686/article/details/124006881)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [java-rest-experiment](https://download.csdn.net/download/weixin_42104906/19245446)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文