今天升級了一下jdk,看到JDK1.6正式版發布了,就下來看看,升級的時候出問題了,由于原目錄下有JavaEE5.0的版本,裝5.2的時候我就先取消了一下,然后繼續裝,在選中安裝目錄后,程序停止了,查看服務進程看不出什么異常,后來去官方查,看到以下內容:
在 Microsoft Windows 上
- 在 Microsoft Windows 任務管理器中,終止 WindowsNativeToolkit 進程并刪除相應文件。
- 使用 wincleanup 公用程序刪除 appserv70-admin、server1 以及任何其它相關服務。
注意 | 如果您的 Microsoft Windows 計算機上未安裝 wincleanup 公用程序,則需要下載它。有關詳細信息,請參見 Sun ONE 知識庫: http://sunsolve.sun.com/pub-cgi/show.pl?target=home |
使用以下語法運行 wincleanup:
wincleanup service_name
其中 service_name 是顯示在 Microsoft Windows“控制面板”中的“服務”屏幕上的實例服務器的名稱(顯示在括號中)。例如,“服務”屏幕可能會在“名稱”下顯示以下內容:
Sun ONE Application Server 7 (server1)
在本例中,服務名是 server1。
對于管理服務器,使用 admin-server 作為服務名。
如果未提供服務名,所有與 Sun ONE Application Server 產品關聯的服務都將被刪除。
- 單擊 Microsoft Windows“開始”按鈕并選擇“運行”,在文本框中鍵入 regedit 以打開 Microsoft Windows 注冊表編輯器。
- 刪除以下注冊表文件夾及其內容:
HKEY_LOCAL_MACHINE\SOFTWARE\Sun Microsystems\Application Server
- 退出注冊表編輯器。
- 在 Microsoft Windows 資源管理器中,刪除產品注冊表文件 (system_drive\WinNT\system32\productregistry),或僅刪除其中的 appserver 條目。
- 在 Microsoft Windows 資源管理器中,從 Sun ONE Application Server 安裝目錄中刪除產品文件。
- 重新引導系統。
但問題卻沒有象想象的那么好解決,后只好去官方的英文論壇看到了這樣的解決方法
Could you please check following two things:
1) Do you have environment variable SystemDrive defined on this system? If not, define it and set it to C:
2) Look into c:\winnt\system32 folder and look for any files whose name begins with "productregistry". There should be only one file (or none at all). If you can see more than one such file, it means that deadlock occured during the update of this file. If this is the case, leave only file called "productregistry" and delete any other such files (they would be called "productregistry.lock" and "productregistry.bak", or something similar to that).
自己對照了一下,發現在c:\winnt\system32下確實發現了兩個producteregistry前綴的文件,一個為正常的,還有一個tmp文件,臨時文件,大小0K,刪除后安裝,ok!
明天去下上海