7

Possible Duplicate:
Running java without installing jre?

I am working on a Java application. I created an executable .jar file of my application. It works fine on my machine. Now, I want to deploy it over the client machines which don't have JRE locally.

  • Is there any way to run my executable jar file without installing JRE locally?
  • Alternately: What minimum files are required from the JRE folder so I can pack them with my installation package?

Suggestions are always welcome.

Community
  • 1
  • 1
mirfan00
  • 129
  • 2
  • 9
  • *"I want to deploy it"* How do you intend to deliver it? The web? Disk? [IPoAC](http://en.wikipedia.org/wiki/IP_over_Avian_Carriers) (Carrier pigeon)? -- Does the app. have a GUI? I suspect there are much better answers than those already offered, but the devil is in the details of the answers to those 2 questions. – Andrew Thompson Jun 12 '12 at 09:36
  • No, the app has no GUI. It's a console application. I want to deploy as a jar (may be in a disk). – mirfan00 Jun 12 '12 at 10:56

2 Answers2

1

What minimum files are required from the jre or jdk folder so I can pack them with my installation package??

You can pack a jre with your runnable .jar with software like Launch4J

Julien Breuil
  • 165
  • 1
  • 2
  • 15
0

The only way I know of is to pack the jre.jar with your application (you can of course even include it in your char). Some of the jar>executable tools already provide this option (for instance Launch4J as user1444702 already mentioned).

brimborium
  • 9,362
  • 9
  • 48
  • 76