Errors suddenly appear after updating to JDK versions: 8u381, 11.0.20, 17.0.8, or 21.0.0

未關閉
#560 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
35/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
java
領域
build-system

研究方向

未指定任何 repository 檔案、測試或 entry point。請先檢視 issue 中回報的 JDK 版本,以及 Maven 和 javac 指令;完成條件應是一份清楚且持續維護的疑難排解說明,解釋 signature-file-size workaround 和受影響的 Java 版本。

由索引模型根據 Issue 內容生成。

描述

SDK

The following error message or similar might be encountered:

java.lang.ClassNotFoundException: com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider

This issue is a result of the listed Java versions, which have a default maximum signature file size smaller than some Java SDK JARs.

To resolve this problem, you can run Maven with the following parameter:
-Djdk.jar.maxSignatureFileSize=16000000

If you're compiling with javac, you can use the following command:
javac -J-Djdk.jar.maxSignatureFileSize=16000000 example.java

The low default value in Java will be addressed and resolved in upcoming minor Java version releases.

主要語言
Java
星號
243
分支
171
平均合併
5 分鐘
30 天內合併 PR
4

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

oracle/oci-java-sdk 的其他 Issue

查看 oracle/oci-java-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。