Skip to content

Solution to "Could not find or load main class" on Windows #334

@Bernhard-Hiller

Description

@Bernhard-Hiller

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

java.exe -Djava.util.logging.config.file=logging.properties -Xms64M -Xmx512M -cp "%~dp0\OsmAndMapCreator.jar";"%~dp0\lib\*.jar" net.osmand.obf.BinaryInspector %*

and in the other .bat files accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions