File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Running application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Running application" Watch "Running application" New topic

Running application

dave tuazon

Joined: Feb 26, 2002
Posts: 4
Is there a way to run a Java application (not an applet) without going through DOS?
Ian B Anderson
Ranch Hand

Joined: Jun 26, 2001
Posts: 275
You could set up an executable JAR file. Then if your system is set up properly you can just double click on the JAR file and it should run. (I have tried this on a few different versions of Windows and it works). Another easier way would be just to create a batch script (I know it would still run through dos but it would be easier to set up than the JAR).
Hope this helps
Chris Stewart
Ranch Hand

Joined: Sep 29, 2001
Posts: 124
I've always used JAR files with a .bat file to execute the JAR. That .bat is kind of like my shortcut. Works good.
Stanley George
Ranch Hand

Joined: Dec 09, 2000
Posts: 55
there is a cool app called java2exe made by a gr8 guy jerry jongerius. u can create exe files with it!
u can download the shareware version from:
warm regards
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Course it ONLY runs under Windows :roll:
The main POINT of using Java is platform independance.
I agree. Here's the link:
subject: Running application
It's not a secret anymore!