On GH version 0.9, I am getting an error message from com/graphhopper/routing/AlternativeRoute.java, line 333, which says:
error: no suitable method found for forEach(<anonymous IntObjectPredicate<SPTEntry>>)
I know the recommended java version is Oracle’s JDK 9, however for various reasons I need to be on open-jdk-8 on Ubuntu, so I need to be able to compile the code on JDK 8. I also get a similar error from com/graphhopper/routing/lm/LandmarkStorage.java line 778 but these are the only two errors.
My question is how can I change these two code blocks to be compatible with Java 8?
For Java sources, I copied all necessary GH java files related to routing, from core, reader-osm. This is pretty much all I have.
I realize the build approach is somewhat old school, nowadays w/ gradle and maven everything is downloaded, setup for you… unfortunately this is what I need to use