• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to create and share a JAR file  RSS feed

 
Comal Rajagopalaratnam Muthukumar
Ranch Hand
Posts: 282
  • 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: 282
  • 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: 282
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!