JAVA_HOME is not set through Environement in AI-8.8 - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

JAVA_HOME is not set through Environement in AI-8.8

Hi Team,

I am new to this forum, our team purchased a latest version

when i install the package, i track something that is...
I attached the screen shot, on this way it will set into environment variable.
In this JAVA_HOME is empty, because of this reason unable to Start Service as auto.
This come in while installation, in this pop-up CATALINA_HOME and CATALINA_BASE is to be set, but JAVA_HOME is empty, but i set in Environment variable in AI-8.8.

I attached environment variable screenshot as well, in my AI-8.8
Environment variable screen-shot in my AI-8.8
Environment variable screen-shot in my AI-8.8
Environment-variable.jpg (148.96 KiB) Viewed 7828 times

Thanks in Advance,
Uday Kumar C.
Attachments
unable to set JAVA_HOME into system variables through AI-8.8
unable to set JAVA_HOME into system variables through AI-8.8
service-start.jpg (72.77 KiB) Viewed 7828 times
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: JAVA_HOME is not set through Environement in AI-8.8

Hi Uday,

As explained in the following forums topic accessing the environment variable from the same process that created it is not possible, this is Windows limitation.
http://www.advancedinstaller.com/forums ... =2&t=20187

The only method is to create a custom action, which runs after the environment variables were created, in another process, for starting the services.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: JAVA_HOME is not set through Environement in AI-8.8

This Type of process is worked in Windows-XP 32-bit what happend Windows-7 32-bit
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: JAVA_HOME is not set through Environement in AI-8.8

What i posted in forum, that type of process is worked successfully in Windows-XP 32-bit what happend Windows-7 32-bit
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: JAVA_HOME is not set through Environement in AI-8.8

Hello,

I'm not sure why it's platform dependent, it shouldn't be. This is unless you have conditioned behavior for specific platform types like XP.
However, the thread my colleague Bogdan included in his last post is the Windows Installer explanation on this environment variable accessibility limitation.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: JAVA_HOME is not set through Environement in AI-8.8

Thank you guys for your replies,

I tried what bogdan, said in his previous post, that is also not well.
Still i am trying to work on this issue from lat 4-days, but it will not resolved.
I haven't set my Pre requisite for only Windows XP , i set for all Windows Operating systems. But why it acts as platform dependent.

Can any one please explain or give me procedure for resolving this conflict.

Thank you,
Udayk.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: JAVA_HOME is not set through Environement in AI-8.8

Hi Udayk,
I tried what bogdan, said in his previous post, that is also not well.
By this I assume you are mentioning Bogdan's following suggestion:
The only method is to create a custom action, which runs after the environment variables were created, in another process, for starting the services.
Can you please specify how did you try to run a custom action that starts the services from another process?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: JAVA_HOME is not set through Environement in AI-8.8

Hi Mihai,

Thank you for your support, i resolved with new procedure.

Thank you,
Udayk.
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: JAVA_HOME is not set through Environement in AI-8.8

Hello guys,

Again i faced this problem, if JAVA_HOME and Path is available on env of before start the installation, it works fine. If new installation of JAVA and NO JAVA_HOME and Path in ENV, the problem should again.

can any one please send a bat file, vbs or js file for setting JAVA_HOME to setting Custom action.
I tried a lot and different files but i set the JAVA_HOME after service starts, so at the time of service install unable to find JAVA_HOME and Path.
So after reboot unable to start service.
How should i get the JAVA_HOME and Path before Service Installs.

Can any one please help on this issue.

I was struggling about this problem from last two-weeks.

Thank you,
Udayk

Return to “Common Problems”