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

NoClassDefFound? #223

Closed
KevinBurton opened this issue Mar 20, 2013 · 2 comments
Closed

NoClassDefFound? #223

KevinBurton opened this issue Mar 20, 2013 · 2 comments

Comments

@KevinBurton
Copy link

I have an application that I have packaged into a .jar file. When I run it I get:

kevin@devUbuntu01:/RiakImport$ java -jar RiakImport.jar
Exception in thread "main" java.lang.NoClassDefFoundError: com/basho/riak/client/raw/config/Configuration
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2451)
at java.lang.Class.getMethod0(Class.java:2694)
at java.lang.Class.getMethod(Class.java:1622)
at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException: com.basho.riak.client.raw.config.Configuration
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 6 more
kevin@devUbuntu01:
/RiakImport$

What is wrong? It seems to work when run under the IDE (IntelliJ).

@broach
Copy link
Contributor

broach commented Mar 20, 2013

Github issues is really not the place to ask basic Java programming questions. This has nothing to do with the Riak Java Client.

@broach broach closed this as completed Mar 20, 2013
@KevinBurton
Copy link
Author

I didn't know this was a basic Java programming question. I just came up and the Riak name was listed in the stack trace.

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