This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I wrote some help desk software for my department. For distribution purposes, I copied the JRE folder onto one of our servers along with the JAR file and created a batch file that runs the JAR file using that specific JRE because we run some other legacy applets that are not complient with Sun's jdk1.4. (MS crap). What I am wondering is if there is anyway, be it with the menifest file or whatever, to control which JRE is used when simply double clicking on the JAR file. As of right now, it will use the JRE installed on the local machine (if there is one).
If you are talking about Windows, what program (e.g., javaw.exe, jview.exe, etc.) is run when you double-click a JAR file is determined by the Windows configuration. For instance, for Windows NT, go to Windows NT Explorer, and View - Folder Options - File Types. Look for the file type configured for JAR, perhaps Executable JAR File.
I had thought about that, but I was hoping that I could do it with something contained in the JAR file because I don't want to have to set something on every PC that runs it. I know that I am probably wanting something that doesn't exist, but it was worth a post. Thanks
Joined: Feb 22, 2001
There are some install program systems, such as InstallShield Multi-Platform, I think it is called, that can install the JRE of your choice with your application.