File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes application to run jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

application to run jar files

Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

i want an application that can directly run a jar file on my PC ? Any freeware ? is it good to convert them to exe and then run ?


SCJP 6. Learning more now.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4531
    
    5

java.exe and javaw.exe can already do that.


luck, db
There are no new questions, but there may be new answers.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14117
    
  16

You can create an executable JAR file and you can then run it by just double-clicking on the JAR file.

For more information on creating executable JAR files see: Packaging Programs in JAR Files


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

Darryl Burke wrote:java.exe and javaw.exe can already do that.


you mean like, "open with" option ?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18765
    
  40

Rahul Sudip Bose wrote:
Darryl Burke wrote:java.exe and javaw.exe can already do that.


you mean like, "open with" option ?


If you have the JRE configured, and it's an executable jar, you can just double click it like any other program.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18765
    
  40

Duplicate topic. Please use your other topic.

http://www.coderanch.com/t/531275/java/java/software-directly-run-class-file

Henry
 
 
subject: application to run jar files