How to create jar file from command line?

Running of JAR file in Windows 7?

  • I have a "helloworld.jar" file. For running a JAR file I am using a command-line window and executing the following command: java -jar helloworld.jar By using this command I can execute the JAR file but instead of doing it in a command-line window, I want to execute the JAR file by double click. For this do I need to install any software? Can any one provide me help on this? Thanks in advance!!

  • Answer:

    The Oracle Java tutorials has some information on how to do this. It's called the 'Java Web Start Application'. Here's a copy & paste of what it does: *** •Java Web Start applications - Java Web Start applications are launched via a browser the first time. They may subsequently be launched from a desktop shortcut. Once a Java Web Start application is downloaded and its security certificate has been accepted by the user, it behaves almost like a standalone application. *** I haven't taken the time to learn how to do it... Here's the link: http://docs.oracle.com/javase/tutorial/deployment/index.html

Hadi Sultani at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Ok it sounds like you are writing software and compiling with JDK1.7 and you only have java 6 JRE installed (at least as far as windows is concerned.)

Jeff

You have to check the Jigga Bytes. They all have to be there for it to work..

Nick

PFFFT like i know...

Ryan

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.