This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Re: is my approach when it comes to java is right
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 29, 2008
03:56 AM
is my approach when it comes to java is right
hi,
basically what i am doing is like.
I bundle up java(jdk) along with my installer (jdk 1.5 ) and i install it on the end users machine if $prop.java.version$ DOES NOT EQUAL 1.5
Now my question is like if the end users machine does not have java on it will my installer run as it has jdk bundled with it which it may use.
But i have bundled jdk 1.5 in the NOVM installer as VM installer comes with 1.6
I install jdk and set JAVA_HOME to $USER_INSTALL_DIR$$/$jdk
and append jdk/bin to $PATH$ environment variable
Will installation of jdk through this method be hit in some of the cases and if so when
Am i wrong in my approach.
basically what i am doing is like.
I bundle up java(jdk) along with my installer (jdk 1.5 ) and i install it on the end users machine if $prop.java.version$ DOES NOT EQUAL 1.5
Now my question is like if the end users machine does not have java on it will my installer run as it has jdk bundled with it which it may use.
But i have bundled jdk 1.5 in the NOVM installer as VM installer comes with 1.6
I install jdk and set JAVA_HOME to $USER_INSTALL_DIR$$/$jdk
and append jdk/bin to $PATH$ environment variable
Will installation of jdk through this method be hit in some of the cases and if so when
Am i wrong in my approach.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 29, 2008
04:26 AM
Won't it be easier to install always the bundled jdk inside the installation folder of your software? In this case you are sure, that always is a jdk available in this version you need.
Then you have only to modify your application start/stop scripts to use the shipped jdk (which is also used by IA uninstaller).
Then you have only to modify your application start/stop scripts to use the shipped jdk (which is also used by IA uninstaller).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 29, 2008
04:29 AM
Won't it be easier to install always the bundled jdk inside the installation folder of your software? In this case you are sure, that always is a jdk available in this version you need.
Then you have only to modify your application start/stop scripts to use the shipped jdk (which is also used by IA uninstaller).
Updating the PATH of the user I think is not a good idea. Better update the scripts of your application to avoid conflicts with other installed software at end user system, that uses Java.
Then you have only to modify your application start/stop scripts to use the shipped jdk (which is also used by IA uninstaller).
Updating the PATH of the user I think is not a good idea. Better update the scripts of your application to avoid conflicts with other installed software at end user system, that uses Java.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 29, 2008
04:55 AM
I agree with tfromm1 that this setup would be easier to maintain.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 29, 2008
06:28 AM
hi,
i have a very silly doubt like if java is not there on a machine will my installer work as i have java bundled in the installer in the NOVM installer as the bundled VM COMES up with java 1.6 and my application works only when jdk 1.5.0_08 is there on the end users machine hence i found this sort of solution.
Regards,
james.
i have a very silly doubt like if java is not there on a machine will my installer work as i have java bundled in the installer in the NOVM installer as the bundled VM COMES up with java 1.6 and my application works only when jdk 1.5.0_08 is there on the end users machine hence i found this sort of solution.
Regards,
james.