• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to create and share a JAR file

 
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Please help in making a jar file that can be viewed at a common place(in the net ) that can be read by any one (example relatives etc who are at distance place )
since sending via mail is expensive and also all jar files are not possible to be ported .
Thanks
As
CRMK
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

allen robin wrote:Hey,If you want the JAR to be double-clickable then you should bundle all the dependencies into a single JAR file.
This can done using the maven assembly plugin: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html



Hi

Though the mvn.cmd command says an error on execution;

How to read this article to know more about

http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException

Else
Can you briefly explain the probable cause of its error when it says that POM file is not there in the directory in which the mvn.cmd is invoked.
I verified with mvn.cmd -v command which reads ok,(M2_Home,JAVA_HOME) directories and their path
Thanks

As
CRMK
 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

allen robin wrote:Hey,If you want the JAR to be double-clickable then you should bundle all the dependencies into a single JAR file.
This can done using the maven assembly plugin: http://maven.apache.org/plugins/maven-assembly-plugin/usage.html


Hi
how to make a jar file built using mvn command
else
What is the firstor easiest command to start for building a jar file via mvn.command
Lastly
Is maven used only for building & not for further execution eg.the jar after it is succesfully bult by maven(which is not always)
Though mmaven seems to be quick but it is very combursome

Please clear this concept
Thanks
CRMK
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic