Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
    Bookmark Topic Watch Topic
  • New Topic

application to run jar files

 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 ?

 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Report post to moderator
java.exe and javaw.exe can already do that.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15459
42
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Rahul Sudip Bose
Ranch Hand
Posts: 637
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Darryl Burke wrote:java.exe and javaw.exe can already do that.


you mean like, "open with" option ?
 
Henry Wong
author
Marshal
Pie
Posts: 21446
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Henry Wong
author
Marshal
Pie
Posts: 21446
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
 
    Bookmark Topic Watch Topic
  • New Topic