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

Yang Viewer NoClassDefFoundError #78

Closed
ds2286s opened this issue Jun 17, 2016 · 1 comment
Closed

Yang Viewer NoClassDefFoundError #78

ds2286s opened this issue Jun 17, 2016 · 1 comment

Comments

@ds2286s
Copy link

ds2286s commented Jun 17, 2016

I have built the yangviewer-project.
But it seems like there is missing a class in the repository.
I can build the jar with the pom.xml

But when i run "java -jar yang-viewer-1.0.0-SNAPSHOT-jar-with-dependencies.jar" it fails.

Exception in thread "main" java.lang.NoClassDefFoundError: org/opendaylight/yang
tools/yang/model/parser/api/YangContextParser
at org.brocade.yangviewer.Main.createJTree(Main.java:123)
at org.brocade.yangviewer.Main.main(Main.java:91)
Caused by: java.lang.ClassNotFoundException: org.opendaylight.yangtools.yang.mod
el.parser.api.YangContextParser
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more

@ds2286s
Copy link
Author

ds2286s commented Jun 17, 2016

Solved it. I need to add the dependent jars to the classpath

@ds2286s ds2286s closed this as completed Jun 17, 2016
This issue was closed.
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

1 participant