Java 9+ Compatibility

Issue #132 closed
Mikhail Lopatkin repo owner created an issue

It turns out that the app cannot run under Java 9 (modules?). Need to check and fix if necessary.

>"C:\Program Files\Java\jre-10.0.1\bin\java.exe" -jar build-0.19-SNAPSHOT-all.jar 

Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.bitbucket.mlopatkin.android.logviewer.Main.main(Main.java:57)
Caused by: java.lang.IllegalArgumentException: Couldn't load resource /logview.properties
    at org.bitbucket.mlopatkin.utils.properties.PropertyUtils.getPropertiesFromResources(PropertyUtils.java:41)
    at org.bitbucket.mlopatkin.utils.properties.PropertyUtils.loadValuesFromResource(PropertyUtils.java:60)
    at org.bitbucket.mlopatkin.android.logviewer.config.Configuration.<clinit>(Configuration.java:276)
    ... 1 more

Comments (5)

  1. Mikhail Lopatkin reporter

    Fix #132: Make logview Java 9 compatible

    Jigsaw(?) doesn't allow classes to load resources from '/'. Loading resources from package is fine though so move all resources to subpackages.

    → <<cset 00e652c22608>>

  2. Log in to comment