Open Bernhard-Hiller opened 5 years ago
Not sure this is related but I do get this error:
java.lang.reflect.InaccessibleObjectException: Unable to make private java.util.Collections$EmptyMap() accessible: module java.base does not "opens java.util" to unnamed module @7692d9cc
tried running with the following command (openjdk 17) without change:
java $JAVA_OPTS -Djava.util.logging.config.file="$DIR/logging.properties" -jar "$DIR/OsmAndMapCreator.jar" --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED
EDIT Oh, swapping the params worked:
java --add-opens java.base/java.util=ALL-UNNAMED $JAVA_OPTS -Djava.util.logging.config.file="$DIR/logging.properties" -jar "$DIR/OsmAndMapCreator.jar"
@pyramid3d Looks to me like your issue is #484. Thanks for the workaround!
When an osmand tool is started from the Windows command line, but the current working directory is different from the folder that tool is located in, a "Could not find or load main class" exception is thrown from java.
This is caused by an insufficient classpath definition. Please change the call in e.g. inspector.bat to
and in the other .bat files accordingly.