• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JRE specified for JAR's Application

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
John Dale
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
John Dale
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic