Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DynamicSaxHandler missing in xml file #15

Open
MusaJTaib opened this issue Jan 8, 2024 · 1 comment
Open

DynamicSaxHandler missing in xml file #15

MusaJTaib opened this issue Jan 8, 2024 · 1 comment

Comments

@MusaJTaib
Copy link

Hi I am very new to this so not sure if it is maybe my fault but when I try to run the Hello World code. I get the error Exception in thread "Thread-0" java.lang.NoClassDefFoundError: de/topobyte/xml/dynsax/DynamicSaxHandler. I have downloaded the correct version of the Jar files and the xml file does not have a class named DynamicSaxHandler.

@sebkur
Copy link
Member

sebkur commented Jan 9, 2024

Hi. Probably you don't have some of the required additional dependencies on your classpath. osm4j-xml requires osm4j-core, dynsax and a few others, all defined in the respective pom file (https://mvn.topobyte.de/de/topobyte/osm4j-xml/1.3.0/osm4j-xml-1.3.0.pom). If you include osm4j-xml using any capable build system such as Maven or Gradle, these will be added to you classpath automatically. Doing this manually doesn't make much sense. If you absolutely wanted to go down a road with manual jar files on you classpath, I'd recommend still setting up a Gradle or Maven project to gather the jar files into a directory for you for further usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants