Closed GoogleCodeExporter closed 9 years ago
Thank you Elisha for taking time to file this issue.
The error message seems to suggest that the problem can be fixed either in your
main
class, or in Simon Tuffs' OneJAR library. It's specifically the "public static
class"
I'm worried about, compared to "public class" which is normally used. I would
like to
see the source for your RMB.CreditConsole.Program class, to figure it out. Can
you
please attach it?
/Hugo
Original comment by hugo.josefson.old@gmail.com
on 2 Jun 2009 at 7:33
Hey Hugo, The issue was that my class was just declared as 'class' not 'public
class'. When I changed the access modifier to 'public class' it seemed to find
the
main method. Which is still kind of odd since the normal jar still seems to
find the
method regardless. However, Not all my dependencies seem to be added,
particularly
all my dependencies on other prjects? I do declare them in my pom as
dependencies
the exact same way I do for the external jars. Any help?
Thanks so much,
Elisha
Original comment by Elisha.N...@gmail.com
on 2 Jun 2009 at 8:26
Apparently, according to
http://java.sun.com/docs/books/tutorial/getStarted/application/ you should be
able to
have the class declared as 'class' and not 'public class'. The OneJAR library
should
support that, bit seems not to.
And yes, you should declare your dependencies in your pom as usual. They should
then
be picked up and included in the one-jar.jar. If they don't, please file a
separate
issue and attach your pom.xml to that.
/Hugo
Original comment by hugo.josefson.old@gmail.com
on 2 Jun 2009 at 9:09
Closing this issue as WontFix, because I made no changes to
onejar-maven-plugin. Any
changes needed for picking up your non-public class would be required in the
OneJar
library itself (i.e. not in the maven plugin). http://one-jar.sourceforge.net/
/Hugo
Original comment by hugo.josefson.old@gmail.com
on 12 Jun 2009 at 6:57
Original issue reported on code.google.com by
Elisha.N...@gmail.com
on 2 Jun 2009 at 6:36