This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Installing app with a specific JRE without affecting users current installed JRE? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Installing app with a specific JRE without affecting users current installed JRE?" Watch "Installing app with a specific JRE without affecting users current installed JRE?" New topic
Author

Installing app with a specific JRE without affecting users current installed JRE?

Matt Wilcko
Ranch Hand

Joined: Sep 23, 2003
Posts: 65
Is there any way to disbribute a java appliation with its own jre and have it installed without affecting the users current JRE? I am just concerned that software I am distributing on CD could have problems with future versions of the JRE.
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
I think you can force your application to run the jre by sepcified the path.
Let's say you have 2 version:
c:\program files\jre1.4_1
c:\program files\<your app>\jre1.3
I believe you can explicitly invoke the 2nd jre by call java command with specific path: c:\program files\<your app>\jre1.3\bin\java myApp.jar.
However, I don't know if Sun allows this type of distribution. (Just being a bit cautious.)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Installing app with a specific JRE without affecting users current installed JRE?
 
Similar Threads
Setting custom location for Java WS cache
New to Linux!!!
running java without JRE ?
JRE Installation Question
Is Microsoft IE (SP2) blocking JAR files?