Open romaintailhurat opened 4 years ago
Java 11+ seems required as it allows modularization.
Today, on R-hub, at least one build ok: https://builder.r-hub.io/status/darkr_0.2.0.tar.gz-9bee1d706df34a2dbfb19e4276a66de7
But, it didn't built on Windows:
-- ERROR (test-java_utils.R:2:3): Instantiate InMemoryDataset ------------------
Error: java.lang.UnsupportedClassVersionError: fr/insee/vtl/model/Dataset has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
I sent a mail to the CRAN to discuss the problem.
The problem is the same using GitHub actions, see https://github.com/romaintailhurat/darkr/actions/runs/304692453
Before pushing to CRAN, i use R-hub as is advised.
When doing so, the tests are in error because the provided JVM is not adapted to the version used to compile classes:
This easiest solution would be to recompile the classes with Java 8 (52), see the list of java versions.
Another more complex option would be to see if another runtime can be used with R-hub and CRAN.