JDK-6603386 : kernel uninstaller should check for javaws.jar before launching javaws -uninstall
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 6u5
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2007-09-11
  • Updated: 2010-04-04
  • Resolved: 2007-10-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u10Resolved
Related Reports
Duplicate :  
Description
Including email on this discussion:

###########START EMAIL####################
yes - checking for the existance of javaws.jar should be fine.
The only possible conflict is if you install 6u2 - run some javaws programs, then install kernel build of 6u5.
then uninstall 6u2, then uninstall kernel before javaws.jar is downloaded.
this will be a rare occurance, since in the time you uninstall 6u2, the background downloader should have made some progress.
anyway the only bad effect would be to leave shortcuts on the system for the apps installed by running javaws with 6u2.

/Andy

William Harnois wrote:

> Andy,
>
> If javaws.jar doesn't exist, and therefore we uninstall without running the "javaws -uninstall" command, will everything get cleaned up properly?
>
> -Bill
>
> Ethan Nicholas wrote:
>
>> I also wonder if this has anything to do with the background downloader process problem -- perhaps you kill the background downloader, then run this command which re-starts it?
>>
>> I'm not sure there is a safe way to answer the question "will running this command cause anything else to be downloaded?"  The absence of javaws.jar is proof that javaws has not been run (at least not successfully), but its presence doesn't guarantee that all of its other prerequisites (like Swing) are present.
>>
>> There are various ways to prevent Kernel from downloading anything else while running this command, but then you run the risk of having javaws pop up an error message when such-and-such dependency can't be found.  I'd suggest that the safest thing to do is check for the presence of javaws.jar first;  it's not a 100% guarantee that nothing else will be downloaded, but it should be pretty accurate.  And we should pass in the
>> -J-Dkernel.background.download=false
>> argument to prevent it from starting up a background download process.
>>
>> Ethan Nicholas
>> ###@###.### <mailto:###@###.###>
>>
>>
>>
>> On Sep 4, 2007, at 10:16 AM, Andy Herrick - Java Engineering wrote:
>>
>>> if javaws has not been run, it will need to download the rest of the components needed run Java Web Start.
>>> However, if javaws has not been run there is really no reason to run this command at all.
>>> (Since all it does is remove shortcuts installed by this JDK 6 if this is the last instance of JDK6 on the machine)
>>> I wonder if there is any way we can determine this ahead of time and not run this command at all ?
>>>
>>> /Andy
>>>
>>> William Harnois wrote:
>>>
>>>> I've noticed that when uninstalling the kernel build from:
>>>>
>>>> http://j2se.east/plugin/1.6.0_05-nightly/2007-08-30.23_28
>>>>
>>>> it seems to sometimes show the kernel dialog and download additional files during the uninstall.  The only java command we launch during uninstall is:
>>>>
>>>> javaws.exe -J-Dkernel.background.download=false  -silent -shortcut -uninstall
>>>>
>>>> -Bill
###########END EMAIL####################