metarank/lightgbm4j

java: Inaccessible io.github.metarank.lightgbm4j.LGBMBooster

jinhanlai opened this issue · 4 comments

Hi, I am trying to use lightgbm4j with Java 8 + maven :
I am using Mac OS, but when I compile the project I get the error below:

Error:(2, 37) java: Inaccessible io.github.metarank.lightgbm4j.LGBMBooster
Wrong class file: /Users/*/ProgramData/apache-maven-3.6.3/repository/io/github/metarank/lightgbm4j/3.1.1-1/lightgbm4j-3.1.1-1.jar!/io/github/metarank/lightgbm4j/LGBMBooster.class
The class file has the wrong version 55.0, should be 52.0

Should be fixed by 723dba1

You can try version 3.1.1-2 which is now java8-compatible. But anyway, I guess it's time to switch to 11 LTS :)

In macos, this file directory does not exist, the mac directory should be written as osx.
image

@jinhanlai please try the https://github.com/metarank/lightgbm4j/releases/tag/3.1.1-3 (should be available on maven-central quite soon)
I also have a ticket to run the CI on mac/windows to prevent these types of issues here: #36

fixed in 3.2.0-2