Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть Resolving the java.lang.IllegalArgumentException Error in Proguard When Upgrading to Java 11

  • vlogize
  • 2025-09-26
  • 3
Resolving the java.lang.IllegalArgumentException Error in Proguard When Upgrading to Java 11
Proguard - java.lang.IllegalArgumentException: Can't find common super class ofjavascalaakkaproguard
  • ok logo

Скачать Resolving the java.lang.IllegalArgumentException Error in Proguard When Upgrading to Java 11 бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно Resolving the java.lang.IllegalArgumentException Error in Proguard When Upgrading to Java 11 или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку Resolving the java.lang.IllegalArgumentException Error in Proguard When Upgrading to Java 11 бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео Resolving the java.lang.IllegalArgumentException Error in Proguard When Upgrading to Java 11

Encounter a `java.lang.IllegalArgumentException` while using Proguard after upgrading to Java 11? Discover the solution that works!
---
This video is based on the question https://stackoverflow.com/q/62778789/ asked by the user 'Mike' ( https://stackoverflow.com/u/7849631/ ) and on the answer https://stackoverflow.com/a/62991552/ provided by the user 'Mike' ( https://stackoverflow.com/u/7849631/ ) at 'Stack Overflow' website. Thanks to these great users and Stackexchange community for their contributions.

Visit these links for original content and any more details, such as alternate solutions, latest updates/developments on topic, comments, revision history etc. For example, the original title of the Question was: Proguard - java.lang.IllegalArgumentException: Can't find common super class of

Also, Content (except music) licensed under CC BY-SA https://meta.stackexchange.com/help/l...
The original Question post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license, and the original Answer post is licensed under the 'CC BY-SA 4.0' ( https://creativecommons.org/licenses/... ) license.

If anything seems off to you, please feel free to write me at vlogize [AT] gmail [DOT] com.
---
Resolving the java.lang.IllegalArgumentException Error in Proguard When Upgrading to Java 11

Upgrading your Java version can sometimes lead to unexpected challenges, especially when using tools like Proguard for obfuscation and optimization of your code. A common issue that arises during this transition is the dreaded java.lang.IllegalArgumentException related to the inability to find a common superclass.

In this guide, we'll dissect this problem, the specific error message encountered, and provide a solution that will help you tackle this issue effectively.

The Problem: Encountering the IllegalArgumentException

After switching your project's Java version from 8 to 11, you might face an error while running Proguard. The stack trace reveals something critical:

[[See Video to Reveal this Text or Code Snippet]]

This indicates that Proguard is struggling to resolve the common superclass of two classes in the Akka Actor library. This is an issue often exacerbated by changes in how Java manages packages and modules.

Expected Proguard Configuration

You might be using a Proguard configuration that looks like this:

[[See Video to Reveal this Text or Code Snippet]]

That said, despite your efforts with various -keep directives specifically for Akka, the error persists.

The Solution: Adding the Right Library Jars

The key to resolving the IllegalArgumentException lies in instructing Proguard to recognize the correct Java modules. Specifically, you would need to add the following parameter to your Proguard configuration:

[[See Video to Reveal this Text or Code Snippet]]

Understanding the Solution Components

What is -libraryjars?

This option tells Proguard where to find the library jars that need to be included during the Shrink and Optimize phase.

Why $java_home_11/jmods/java.base.jmod?

In Java 11, the module system was introduced, which changes how classes are organized. Specifying the path to the java.base.jmod ensures that Proguard can correctly identify and work with classes that reside in the base module of Java, including key classes used by Akka.

Additional Suggestions

If you still encounter issues, consider using the -dontpreverify option temporarily while troubleshooting. However, be cautious with this setting as it prevents Proguard from verifying the class structure, which might lead to potential runtime errors.

Make sure your Akka library is compatible with Java 11. You may want to look into updated versions that specifically support this Java version.

Conclusion

Transitioning from Java 8 to 11 can unveil hidden compatibility issues, especially in tools like Proguard. By implementing the solution discussed, you can effectively resolve the java.lang.IllegalArgumentException.

For developers using Akka, ensuring that Proguard has access to the necessary library jars is crucial in avoiding similar roadblocks in the future. Happy coding!

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]