• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaApplication.exe

 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this topic to Java in General(advanced) forum.

------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java2 Platform.
 
Nitin Shivaram
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Mark Herschberg
Sheriff
Posts: 6037
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all for your responses.
Angela
 
ritu sharma
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic