Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created April 11, 2013 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matschaffer/5366510 to your computer and use it in GitHub Desktop.
Save matschaffer/5366510 to your computer and use it in GitHub Desktop.
> java -cp ./bin/validate.jar x.alert.Validate input_file 1 ↵
Exception in thread "main" java.lang.NoClassDefFoundError: x/alert/Validate
Caused by: java.lang.ClassNotFoundException: x.alert.Validate
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> unzip -l ./bin/validate.jar | grep Validate.class 1 ↵
warning [./bin/validate.jar]: 76 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [./bin/validate.jar]: reported length of central directory is
-76 bytes too long (Atari STZip zipfile? J.H.Holm ZIPSPLIT 1.1
zipfile?). Compensating...
958 03-24-13 20:41 x/alert/Validate.class
4611 01-13-11 23:06 org/apache/commons/lang/Validate.class
error: expected central file header signature not found (file #69132).
(please check that you have transferred or created the zipfile in the
appropriate BINARY mode and that you have compiled UnZip properly)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment