Coder Social home page Coder Social logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 30, 2024
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 [email protected] on 2 Jun 2009 at 7:33

from onejar-maven-plugin.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 30, 2024
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 [email protected] on 2 Jun 2009 at 8:26

from onejar-maven-plugin.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 30, 2024
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 [email protected] on 2 Jun 2009 at 9:09

from onejar-maven-plugin.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 30, 2024
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 [email protected] on 12 Jun 2009 at 6:57

  • Changed state: WontFix
  • Added labels: OpSys-All, Priority-Low
  • Removed labels: Priority-Medium

from onejar-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.