users@glassfish.java.net

Re: Update Tool Error

From: <forums_at_java.net>
Date: Sun, 17 Apr 2011 05:09:32 -0500 (CDT)

My OS is Windows XP SP3.

i run pkg list and below is its output :

 

Normal 0 false false false EN-US X-NONE FA MicrosoftInternetExplorer4 /*
Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes;
mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:"";
mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin-top:0cm;
mso-para-margin-right:0cm; mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0cm; line-height:115%; mso-pagination:widow-orphan;
font-size:11.0pt; font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin; mso-bidi-font-family:Arial;
mso-bidi-theme-font:minor-bidi;}
C:\glassfish3\bin>setlocal

C:\glassfish3\bin>set MY_HOME=C:\glassfish3\bin\

C:\glassfish3\bin>set RETURN_CODE=0

C:\glassfish3\bin>set MY_PATH=pkg

C:\glassfish3\bin>for /F "tokens=1 delims=\" %A in ("pkg") do set MY_NAME=%A

C:\glassfish3\bin>set MY_NAME=pkg

C:\glassfish3\bin>for /F "tokens=1* delims=\" %A in ("pkg") do set MY_PATH=%B

C:\glassfish3\bin>set MY_PATH=

C:\glassfish3\bin>if defined MY_PATH goto loop2

C:\glassfish3\bin>if /I pkg == updatetool.bat set MY_NAME=updatetool

C:\glassfish3\bin>if /I pkg == pkg.bat set MY_NAME=pkg

C:\glassfish3\bin>set BOOTSTRAPJAR=pkg/lib/pkg-bootstrap.jar

C:\glassfish3\bin>set
BOOTSTRAPPROPS=C:\DOCUME~1\Ehsan\LOCALS~1\Temp\pkg-bootstr

ap29412.props

C:\glassfish3\bin>set MY_JAVA_HOME="none"

C:\glassfish3\bin>set JDK_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Developm

ent Kit

C:\glassfish3\bin>set JRE_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Runtime

Environment

C:\glassfish3\bin>set JRMT_JDK_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Java
Deve

lopment Kit

C:\glassfish3\bin>set JRMT_JRE_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Java
Runt

ime Environment

C:\glassfish3\bin>set JRRT_KEY=HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Real Time

C:\glassfish3\bin>(FOR /F "tokens=1,2*" %A IN ('reg query
"HKEY_LOCAL_MACHINE\SO

FTWARE\JavaSoft\Java Development Kit\1.6" /v JavaHome') DO SET
MY_JAVA_HOME=%C )

 2>nul

C:\glassfish3\bin>SET MY_JAVA_HOME=VERSION 3.0

C:\glassfish3\bin>SET MY_JAVA_HOME=Kit\1.6

C:\glassfish3\bin>SET MY_JAVA_HOME=D:\Program Files\Java\jdk1.6.0_24

C:\glassfish3\bin>(if not exist "D:\Program Files\Java\jdk1.6.0_24\bin" FOR
/F "

tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Runtim

e Environment\1.6" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul

C:\glassfish3\bin>(if not exist "D:\Program Files\Java\jdk1.6.0_24\bin" FOR
/F "

tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Develo

pment Kit\1.5" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul

C:\glassfish3\bin>(if not exist "D:\Program Files\Java\jdk1.6.0_24\bin" FOR
/F "

tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Runtim

e Environment\1.5" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul

C:\glassfish3\bin>(if not exist "D:\Program Files\Java\jdk1.6.0_24\bin" FOR
/F "

tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Java
Develop

ment Kit\1.6" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul

C:\glassfish3\bin>(if not exist "D:\Program Files\Java\jdk1.6.0_24\bin" FOR
/F "

tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Java
Runtime

 Environment\1.6" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul

C:\glassfish3\bin>(if not exist "D:\Program Files\Java\jdk1.6.0_24\bin" FOR
/F "

tokens=1,2*" %A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\JRockit\Real
Time\1.

6" /v JavaHome') DO SET MY_JAVA_HOME=%C ) 2>nul

C:\glassfish3\bin>if not exist "D:\Program Files\Java\jdk1.6.0_24\bin" set
MY_JA

VA_HOME=D:\Program Files\Java\jdk1.6.0_22

C:\glassfish3\bin>if not defined MY_JAVA_HOME goto findjavainpath

C:\glassfish3\bin>if not exist "D:\Program Files\Java\jdk1.6.0_24\bin" goto
find

javainpath

C:\glassfish3\bin>set MY_JAVA_CMD=D:\Program Files\Java\jdk1.6.0_24\bin\java

C:\glassfish3\bin>echo.

C:\glassfish3\bin>echo The software needed for this command (pkg) is not
install

ed.

The software needed for this command (pkg) is not installed.

C:\glassfish3\bin>if 'pkg' == 'updatetool' (

echo.

 echo If you choose to install Update Tool, your system will be
automatically

 echo configured to periodically check for software updates. If you would
like

echo to configure the tool to not check for updates, you can override the

 echo default behavior via the tool's Preferences facility.

 set PROMPTMSG="Would you like to install Update Tool now (y/n): "

)  else (set PROMPTMSG="Would you like to install this software now (y/n): "
)

C:\glassfish3\bin>echo.

C:\glassfish3\bin>echo When this tool interacts with package repositories,
some

system information

When this tool interacts with package repositories, some system information

C:\glassfish3\bin>echo such as your system's IP address and operating system
typ

e and version

such as your system's IP address and operating system type and version

C:\glassfish3\bin>echo is sent to the repository server. For more information
pl

ease see:

is sent to the repository server. For more information please see:

C:\glassfish3\bin>echo.

C:\glassfish3\bin>echo
http://wikis.sun.com/display/updatecenter/UsageMetricsUC2

http://wikis.sun.com/display/updatecenter/UsageMetricsUC2

C:\glassfish3\bin>echo.

C:\glassfish3\bin>echo Once installation is complete you may re-run this
command.

Once installation is complete you may re-run this command.

C:\glassfish3\bin>echo.

C:\glassfish3\bin>set RESPONSE="tbd"

C:\glassfish3\bin>set /p RESPONSE="Would you like to install this software
now (

y/n): "

Would you like to install this software now (y/n): y

C:\glassfish3\bin>if /I 'y' == 'y' goto yes1

C:\glassfish3\bin>echo # Update Center Bootstrap properties  
1>"C:\DOCUME~1\Ehs

an\LOCALS~1\Temp\pkg-bootstrap29412.props"

C:\glassfish3\bin>echo install.pkg=true
1>>"C:\DOCUME~1\Ehsan\LOCALS~1\Temp\pkg-

bootstrap29412.props"

C:\glassfish3\bin>if defined HTTP_PROXY echo proxy.URL=
1>>"C:\DOCUME~1\Ehsan\LO

CALS~1\Temp\pkg-bootstrap29412.props"

C:\glassfish3\bin>if defined HTTPS_PROXY echo proxy.secure.URL=
1>>"C:\DOCUME~1\

Ehsan\LOCALS~1\Temp\pkg-bootstrap29412.props"

C:\glassfish3\bin>if not defined HTTP_PROXY echo proxy.use.system=true
1>>"C:\DO

CUME~1\Ehsan\LOCALS~1\Temp\pkg-bootstrap29412.props"

C:\glassfish3\bin>if /I pkg == updatetool echo install.updatetool=true
1>>"C:\DO

CUME~1\Ehsan\LOCALS~1\Temp\pkg-bootstrap29412.props"

C:\glassfish3\bin>echo. 
1>>"C:\DOCUME~1\Ehsan\LOCALS~1\Temp\pkg-bootstrap29412.

props"

C:\glassfish3\bin>set MY_IMAGE_PATH=C:\glassfish3\bin\\..

C:\glassfish3\bin>(if exist "C:\glassfish3\bin\\updatetool" del /F
"C:\glassfish

3\bin\\updatetool" ) 2>nul

C:\glassfish3\bin>(if exist "C:\glassfish3\bin\\pkg" del /F
"C:\glassfish3\bin\\

pkg" ) 2>nul

C:\glassfish3\bin>echo.

C:\glassfish3\bin>"D:\Program Files\Java\jdk1.6.0_24\bin\java"
-Dimage.path="C:\

glassfish3\bin\\.." -jar "C:\glassfish3\bin\\..\pkg/lib/pkg-bootstrap.jar"
"C:\D

OCUME~1\Ehsan\LOCALS~1\Temp\pkg-bootstrap29412.props"

Proxy: Using system proxy settings.

Install image: C:\glassfish3

Initialization complete.

 

 


--
[Message sent by forum member 'esadeghi']
View Post: http://forums.java.net/node/791257