Created On: 21 September 2011
Problem:
When starting the StarTeam Notification Agent, the following error is generated:
The LoadLibrary function failed for the following reason: LoadLibrary is not a valid Win32 application
The LoadLibrary function failed for the following reason: LoadLibrary is not a valid Win32 application
Resolution:
This error will occur when the Notification Agent is installed on a Windows 64bit environment. To resolve the problem:
1. Locate the batch file in the Notification Agent installation directory:
C:\Program Files\Borland\StarTeam Notification Agent\Java Service\NotificationAgentService.bat
2. Make a backup copy of the original NotificationAgentService.bat file
3. Open the batch file using a text editor
4. Locate the line at the bottom of the file which begins "JavaService.exe -install...."
5. Edit the following entries so that they point to the x86 Program files directory as seen below:
-Djava.class.path="C:\Program Files (x86)\Borland\StarTeam Notification Agent\agent.jar";"C:\Program Files (x86)\Borland\StarTeam Notification Agent\starteam100.jar"
-Djava.library.path="C:\Program Files (x86)\Borland\StarTeam Notification Agent";"C:\Program Files\Borland\StarTeam SDK 11.0\lib" -Xmx256m -start com.starbase.starteam.workflow.NARuntime.NotificationAgentFrame -params -service "C:\Program Files (x86)\Borland\StarTeam Notification Agent\localhost_49201.nac" -stop com.starbase.starteam.workflow.NARuntime.NotificationAgentFrame -method stopAgent -out "C:\Program Files (x86)\Borland\StarTeam Notification Agent\NAService.log" -err "C:\Program Files (x86)\Borland\StarTeam Notification Agent\NAService.log" -current "C:\Program Files (x86)\Borland\StarTeam Notification Agent"
6. Save the batch file
7. If a windows service already exists for the Notification Agent, remove it with the command below:
JavaService.exe -uninstall NotificationAgent
8. Execute the NotificationAgentService.bat file, this will re-create the windows service
9. Start the Notification Agent service
If you are still having problems please contact the MicroFocus Support team.
1. Locate the batch file in the Notification Agent installation directory:
C:\Program Files\Borland\StarTeam Notification Agent\Java Service\NotificationAgentService.bat
2. Make a backup copy of the original NotificationAgentService.bat file
3. Open the batch file using a text editor
4. Locate the line at the bottom of the file which begins "JavaService.exe -install...."
5. Edit the following entries so that they point to the x86 Program files directory as seen below:
-Djava.class.path="C:\Program Files (x86)\Borland\StarTeam Notification Agent\agent.jar";"C:\Program Files (x86)\Borland\StarTeam Notification Agent\starteam100.jar"
-Djava.library.path="C:\Program Files (x86)\Borland\StarTeam Notification Agent";"C:\Program Files\Borland\StarTeam SDK 11.0\lib" -Xmx256m -start com.starbase.starteam.workflow.NARuntime.NotificationAgentFrame -params -service "C:\Program Files (x86)\Borland\StarTeam Notification Agent\localhost_49201.nac" -stop com.starbase.starteam.workflow.NARuntime.NotificationAgentFrame -method stopAgent -out "C:\Program Files (x86)\Borland\StarTeam Notification Agent\NAService.log" -err "C:\Program Files (x86)\Borland\StarTeam Notification Agent\NAService.log" -current "C:\Program Files (x86)\Borland\StarTeam Notification Agent"
6. Save the batch file
7. If a windows service already exists for the Notification Agent, remove it with the command below:
JavaService.exe -uninstall NotificationAgent
8. Execute the NotificationAgentService.bat file, this will re-create the windows service
9. Start the Notification Agent service
If you are still having problems please contact the MicroFocus Support team.
Incident #2518622