This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
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 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
posted
0
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
posted
0
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.
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
posted
0
Thanks to all for your responses. Angela
ritu sharma
Greenhorn
Joined: Nov 15, 2005
Posts: 1
posted
0
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.