This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes stansalone executable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "stansalone executable " Watch "stansalone executable " New topic

stansalone executable

sriram balakrishnan

Joined: Mar 07, 2007
Posts: 1
can we have a single standalone executable for a java application and it shouls start the application without having jre or jdk installed in the machine?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14950

You cannot run a Java program without a JRE or JDK on the computer. That's like trying to drive a car without an engine in it...

You could use something like IzPack to install your Java application. The IzPack installer will install a JRE if the user doesn't have a JRE on his or her computer.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: stansalone executable
It's not a secret anymore!