• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

How to create and share a JAR file

 
Ranch Hand
Posts: 366
  • Mark post as helpful
  • send pies
  • 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: 366
  • Mark post as helpful
  • send pies
  • 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: 366
  • Mark post as helpful
  • send pies
  • 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
 
Mo-om! You're embarassing me! Can you just read a tiny ad like a normal person?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!