Issue 6 in shavenmaven: 59's MANIFEST.MF doesn't contain a Main-Class

1 view
Skip to first unread message

shave...@googlecode.com

unread,
Mar 14, 2013, 6:41:16 AM3/14/13
to shave...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 6 by toby.wes...@gmail.com: 59's MANIFEST.MF doesn't contain a
Main-Class
http://code.google.com/p/shavenmaven/issues/detail?id=6

And so can't be started using "java -jar"

It looks like this

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Created-By: 1.6.0_32-b05 (Sun Microsystems Inc.)
Main-Class:
Built-By: ubuntu
Specification-Title: shavenmaven
Specification-Version: 59
Specification-Vendor: shavenmaven
Implementation-Title: shavenmaven
Implementation-Version: 59
Implementation-Vendor: shavenmaven


and executing does this;

$ java -jar shavenmaven-59.jar build.dependencies lib
Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
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)
Could not find the main class: . Program will exit.


--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

shave...@googlecode.com

unread,
Mar 14, 2013, 6:50:20 AM3/14/13
to shave...@googlegroups.com

Comment #1 on issue 6 by toby.wes...@gmail.com: 59's MANIFEST.MF doesn't
I don't have hg to create a patch, but I'm guess that

https://code.google.com/p/shavenmaven/source/browse/build.xml#52

needs to have "main.class=com.googlecode.shavenmaven.Dependencies"

as https://code.google.com/p/shavenmaven/source/browse/build/macros.xml#25
will default to empty.

ttfn

Daniel Worthington-Bodart

unread,
Mar 14, 2013, 7:33:43 AM3/14/13
to shave...@googlegroups.com
This is actually a bug in JarJar https://code.google.com/p/jarjar/issues/detail?id=39

I'm working on a work around


You received this message because you are subscribed to the Google Groups "shavenmaven" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shavenmaven+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



shave...@googlecode.com

unread,
Mar 14, 2013, 8:12:12 AM3/14/13
to shave...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 6 by daniel...@gmail.com: 59's MANIFEST.MF doesn't
This issue was closed by revision 00f703d4ddd0.
Reply all
Reply to author
Forward
0 new messages