aspose file tools*
The moose likes Java in General and the fly likes JavaApplication.exe Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JavaApplication.exe" Watch "JavaApplication.exe" New topic
Author

JavaApplication.exe

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi All,
I have following question:
If client doesn't have Java runtime Environment or JDK or any other source to run java application(NOT APPLET)
Can I make exe file which will download & run Java application on client machine?
Please let me know
Thanks
Angela
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
I am moving this topic to Java in General(advanced) forum.

------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java2 Platform.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Nitin Shivaram
Ranch Hand

Joined: Jan 17, 2001
Posts: 71
Hi,
You can use IBM's Visual Age to generate an exe from a Java class file. But if and when you do this, u'll be taking away the Java motto "write once, run anywhere' away from it.
cheerio,
Nitin

Nitin S<br />Sun Certified Java Programmer for the Java 2 platform.<br />Tekmetrics Certified Java Programmer For the Java 2 Platform.
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
Actually, even applet's require a JVM, its just that the JVM is included with the web browser.
AFAIK, your options are:
1) Compile the Java source to native code. Then its a regular executable, but it won't be portable to different chip/OS combos. (This may or may not be an issue.)
2) Create an installer executable and include a JVM in the installation.

--Mark
hershey@vaultus.com
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Well, the answer is yes. Now you are going to ask me how, so I will have to investigate.
As a matter of fact, in our company we are working on setting a new standard in this area. Because some users have multiple java applications, written in varying versions of java, we have decided that it would be best in ALL cases to bundle the JRE with the application to prevent being forced into upgrades etc. Yes, this causes a waste of some hard drive space (but not much). Yes, this is a platform dependant solution, but our customers use a common set-up, with staged and scheduled operating system upgrades, so it is not so bad.
This is being done by creating an installation .exe which loads both the JRE and the application to an isolated directory structure. Then an icon is loaded which will execute a .bat file dynamically including the directory structure in the classpath and invoking the application.
The "download and installation" stuff is kept on a web page, allowing the users to install it at their convenience.
[This message has been edited by Cindy Glass (edited January 17, 2001).]


"JavaRanch, where the deer and the Certified play" - David O'Meara
Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Thanks to all for your responses.
Angela
ritu sharma
Greenhorn

Joined: Nov 15, 2005
Posts: 1
Originally posted by Angela Jessi:
Hi All,

I have following question:

If client doesn't have Java runtime Environment or JDK or any other source to run java application(NOT APPLET)

Can I make exe file which will download & run Java application on client machine?

Please let me know
Thanks
Angela


hiii if you have found the solution kindly reply me as i am having same problem plz help.


regards<br />ritu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaApplication.exe