Compiling Java plug-in
Hi all,
I am facing problem while Setup Capturing Java Plug-in dependent Application. Setup Capturing is happening fine but at that time of compiling it throws an error "Java plug-in 1.5 not installed properly",
We could finish the setup capture by clicking Ok. But .MSI is not getting created,
The application itself installs Java plug-in 1.5 and there is no prerequisite,
I would be grateful if you could give some suggestions.
Many thanks in advance,
Siri
I am facing problem while Setup Capturing Java Plug-in dependent Application. Setup Capturing is happening fine but at that time of compiling it throws an error "Java plug-in 1.5 not installed properly",
We could finish the setup capture by clicking Ok. But .MSI is not getting created,
The application itself installs Java plug-in 1.5 and there is no prerequisite,
I would be grateful if you could give some suggestions.
Many thanks in advance,
Siri
0 Comments
[ + ] Show comments
Answers (13)
Please log in to answer
Posted by:
anonymous_9363
13 years ago
Firstly, this section is really for errors returned by the Windows Installer engine. Your post may be moved by a moderator.
Secondly, you should install the JRE that the application requires BEFORE capturing. All the JREs are available as MSIs so you can deploy them in the same way as your package MSI (although they would obviously need to be deployed BEFORE the relevant package.)
Lastly, if you don't have or can't obtain the actual JRE that the app requires, then 999 times out of 1000 (actually, I ahve yet to encounter any issue with this), you can use one which is close enough and fool the application really easily. How? You just replicate the relevant registry entries. For example, your app requires, say 1.5.0_10 but you only have 1.5.0_06 (for argument's sake). All you need do is copy these keys and their contents:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_06
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5.0_06
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.5.0_06
to:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_10
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5.0_10
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.5.0_10
Do NOT update any paths in the new keys, though - leave them pointing to the '06' flavour.
Secondly, you should install the JRE that the application requires BEFORE capturing. All the JREs are available as MSIs so you can deploy them in the same way as your package MSI (although they would obviously need to be deployed BEFORE the relevant package.)
Lastly, if you don't have or can't obtain the actual JRE that the app requires, then 999 times out of 1000 (actually, I ahve yet to encounter any issue with this), you can use one which is close enough and fool the application really easily. How? You just replicate the relevant registry entries. For example, your app requires, say 1.5.0_10 but you only have 1.5.0_06 (for argument's sake). All you need do is copy these keys and their contents:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_06
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5.0_06
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.5.0_06
to:
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Plug-in\1.5.0_10
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.5.0_10
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Web Start\1.5.0_10
Do NOT update any paths in the new keys, though - leave them pointing to the '06' flavour.
Posted by:
mekaywe
13 years ago
Posted by:
anonymous_9363
13 years ago
Check if any SelfReg entries are captured, if so resolve them ( make selfreg empty) and give a tryMore specifically...
- I'd bet you're using Wise Package Studio AND that you have it set to have COM-containing files self-register. Turn that option off. It populates the SelfReg table which, as you have discovered, can have implications when dependencies are not present.
I'll further bet that your app includes at least one DLL whose names begins "NPJAVA"? These DLLs contain the DLLRegisterServer entry-point but no COM information. (One day, the Sun developers will find the compiler switch that prevents that...) Thus, at compile time, Wise attempts to extract non-existent COM, fails and then errors.
So, in summary:
- turn off self-registration and elect to populate the advertising tables instead.
- install the required JRE before capturing.
- do a new capture
Posted by:
mekaywe
13 years ago
Posted by:
Siri30
13 years ago
Hi All,
Thanks for your posts. My application is installing 1.5.0_11 Java version. The same registry entries are present in WSI and MSI also. Still no luck.
Tried installing Java 1.5.0_11 in clean machine and caputured my application. Still in vain.
WSI and MSI are creating properly, but when i launch the shortcuts it is giving an errors. Any more suggestions
Many thanks in advance,
Shirisha G
Thanks for your posts. My application is installing 1.5.0_11 Java version. The same registry entries are present in WSI and MSI also. Still no luck.
Tried installing Java 1.5.0_11 in clean machine and caputured my application. Still in vain.
WSI and MSI are creating properly, but when i launch the shortcuts it is giving an errors. Any more suggestions
Many thanks in advance,
Shirisha G
Posted by:
anonymous_9363
13 years ago
Posted by:
mekaywe
13 years ago
Posted by:
Siri30
13 years ago
Posted by:
anonymous_9363
13 years ago
Posted by:
mekaywe
13 years ago
Posted by:
Siri30
13 years ago
Hi,
Am in using WPS 7.0. Sorry i dont know what is VBScab and I have captured the files using Picturetaker. Still the same files are installing. I will detail expain the process of capturing what I am following.
1. I recieved the source in two folders called X and Y
2. During setup capture, first I need to install X folder Install.exe (Macrovision exe) and need to configure server and shortcut details.
3. During Y folder installation i have to browse to ZIP files and post capture.
4. In Last finishing window, I received 7 times warning like "Java 1.5.0_11 is not installed properly". Finally WSI and MSI have been created.
5. Installed MSI and when i launch workbench shortcut, it gives an error like "Your Project Manager encountered an error and could not complete the requested operation" instead it should contain the ZIP files of Y folder. This shortcut works fine during capturing but MSI shortcut is giving that error.
I have cross checked with services, files & registry. Everything is fine as EXE only. Still MSI shortcut is not working fine. Not sure, whether Capturing problem or is it application behavior.
Many thanks in advance,
Siri..
Am in using WPS 7.0. Sorry i dont know what is VBScab and I have captured the files using Picturetaker. Still the same files are installing. I will detail expain the process of capturing what I am following.
1. I recieved the source in two folders called X and Y
2. During setup capture, first I need to install X folder Install.exe (Macrovision exe) and need to configure server and shortcut details.
3. During Y folder installation i have to browse to ZIP files and post capture.
4. In Last finishing window, I received 7 times warning like "Java 1.5.0_11 is not installed properly". Finally WSI and MSI have been created.
5. Installed MSI and when i launch workbench shortcut, it gives an error like "Your Project Manager encountered an error and could not complete the requested operation" instead it should contain the ZIP files of Y folder. This shortcut works fine during capturing but MSI shortcut is giving that error.
I have cross checked with services, files & registry. Everything is fine as EXE only. Still MSI shortcut is not working fine. Not sure, whether Capturing problem or is it application behavior.
Many thanks in advance,
Siri..
Posted by:
anonymous_9363
13 years ago
This is like pulling teeth...
- run your MSI
- start a lightweight snapshot tool (I use Ziff-Davis' In Control or InstallWatch - I'm not familiar with Gap Capture) and take a 'before' snapshot
- remove any registry flags that indicate that the app has already been installed - you want the vendor's set-up to do a complete install over the top of yours
- run the vendor's setup, making sure to choose the same options as were used to create the MSI
- take a 'after' snapshot
- compare the result to see if the stub has made any relevant additions, deletions or changes and, if so, add these to your MSI
- repeat
- run your MSI
- start a lightweight snapshot tool (I use Ziff-Davis' In Control or InstallWatch - I'm not familiar with Gap Capture) and take a 'before' snapshot
- remove any registry flags that indicate that the app has already been installed - you want the vendor's set-up to do a complete install over the top of yours
- run the vendor's setup, making sure to choose the same options as were used to create the MSI
- take a 'after' snapshot
- compare the result to see if the stub has made any relevant additions, deletions or changes and, if so, add these to your MSI
- repeat
Posted by:
mekaywe
13 years ago

so that the conversation will remain readable.