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
- :
- JAVA_HOME is pointing to jre
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Mar 04, 2013
07:00 AM
JAVA_HOME is pointing to jre
Hi All
I am using install anywhere variable $JAVA_HOME$ to set JAVA_HOME through installer and it is pointing to "C:\Program Files\Java\jre7" instead of pointing C:\Program Files\Java\jdk. we are unable to find the tomcat version because of this reason.could anybody help me how to set JAVA_HOME to C:\Program Files\Java\jdk.
Regards,
Sreekanth
I am using install anywhere variable $JAVA_HOME$ to set JAVA_HOME through installer and it is pointing to "C:\Program Files\Java\jre7" instead of pointing C:\Program Files\Java\jdk. we are unable to find the tomcat version because of this reason.could anybody help me how to set JAVA_HOME to C:\Program Files\Java\jdk.
Regards,
Sreekanth
(7) Replies
‎Mar 04, 2013
11:59 PM
Hi Sreekanth,
The JAVA_HOME variable will be pointing to the directory from where java was picked by the installer to launch. Since your installer is picking jre, the JAVA_HOME variable is having the jre home instead of jdk home.
If you want the JAV_HOME to be pointing to a jdk, then you can do one of the following-
1. Make sure there is only pure jdk installed on the system, so that this will be picked by the installer
2. Provide a LAX_VM argument to the installer, pointing to the jdk
3. Create a With VM installer using a JDK vm pack
In all of these cases, the JAVA_HOME will be pointing to a jdk. Let me know if that helped.
Thanks,
Ramya
The JAVA_HOME variable will be pointing to the directory from where java was picked by the installer to launch. Since your installer is picking jre, the JAVA_HOME variable is having the jre home instead of jdk home.
If you want the JAV_HOME to be pointing to a jdk, then you can do one of the following-
1. Make sure there is only pure jdk installed on the system, so that this will be picked by the installer
2. Provide a LAX_VM argument to the installer, pointing to the jdk
3. Create a With VM installer using a JDK vm pack
In all of these cases, the JAVA_HOME will be pointing to a jdk. Let me know if that helped.
Thanks,
Ramya
‎Mar 05, 2013
12:41 AM
RamyaVenkatesh wrote:
Hi Sreekanth,
The JAVA_HOME variable will be pointing to the directory from where java was picked by the installer to launch. Since your installer is picking jre, the JAVA_HOME variable is having the jre home instead of jdk home.
If you want the JAV_HOME to be pointing to a jdk, then you can do one of the following-
1. Make sure there is only pure jdk installed on the system, so that this will be picked by the installer
2. Provide a LAX_VM argument to the installer, pointing to the jdk
3. Create a With VM installer using a JDK vm pack
In all of these cases, the JAVA_HOME will be pointing to a jdk. Let me know if that helped.
Thanks,
Ramya
Hi Ramya,
Thank you for reply,where i can find the LAX_VM argument in installer
Regards,
Sreekanth
‎Mar 05, 2013
12:43 AM
It's a command line argument to the installer, something like- install.exe LAX_VM
‎Mar 05, 2013
06:44 AM
As I mentioned earlier, you can use a vm pack created using jdk and build a with vm installer.
Alternatively, you can try the JVM Search Settings for every build target under Build Installers > Build configuration > Expand Build atrget node > JVM Search Settings. Configure a spec file such that the installer can pick only JDK to launch. Add this spec file to the corresponding build target. This way you can make sure the picked java is of jdk only. Please check the online help for JVM Spec Search.
Thanks,
Ramya
Alternatively, you can try the JVM Search Settings for every build target under Build Installers > Build configuration > Expand Build atrget node > JVM Search Settings. Configure a spec file such that the installer can pick only JDK to launch. Add this spec file to the corresponding build target. This way you can make sure the picked java is of jdk only. Please check the online help for JVM Spec Search.
Thanks,
Ramya
‎Mar 20, 2013
02:35 AM
Hi,
I think you dont have administrator privilege to do modification in that location, due to which you are getting access denied message. Try opening the file as Admin will solve the problem.
Regards,
Utsab Karmakar
I think you dont have administrator privilege to do modification in that location, due to which you are getting access denied message. Try opening the file as Admin will solve the problem.
Regards,
Utsab Karmakar