[openrtm-commit:01517] r726 - in trunk/jp.go.aist.rtm.RTC: Source/examples installer/resources/Source/examples
openrtm @ openrtm.org
openrtm @ openrtm.org
2015年 2月 5日 (木) 11:10:42 JST
Author: kawauchi
Date: 2015-02-05 11:10:42 +0900 (Thu, 05 Feb 2015)
New Revision: 726
Modified:
trunk/jp.go.aist.rtm.RTC/Source/examples/start-orbd.vbs
trunk/jp.go.aist.rtm.RTC/installer/resources/Source/examples/start-orbd.vbs
Log:
[compat] Registry key confirmation of Java has been changed. Character code has been changed to utf-8.
Modified: trunk/jp.go.aist.rtm.RTC/Source/examples/start-orbd.vbs
===================================================================
--- trunk/jp.go.aist.rtm.RTC/Source/examples/start-orbd.vbs 2015-01-21 06:37:32 UTC (rev 725)
+++ trunk/jp.go.aist.rtm.RTC/Source/examples/start-orbd.vbs 2015-02-05 02:10:42 UTC (rev 726)
@@ -1,42 +1,48 @@
-'orbdN®pXNvg
-'{XNvgÍ«ÏTEMPªÝè³êÄ¢é±ÆðOñƵܷ
-'ȨA«ÏTEMPÍÊáOSÉæèftHgÅÝè³êĢܷ
+'orbdèµ·åç¨ã¹ã¯ãªãã
+'æ¬ã¹ã¯ãªããã¯ç°å¢å¤æ°TEMPãè¨å®ããã¦ãããã¨ãåæã¨ãã¾ã
+'ãªããç°å¢å¤æ°TEMPã¯éä¾OSã«ããããã©ã«ãã§è¨å®ããã¦ãã¾ã
-'N®pIuWFNgÌæ¾
+'èµ·åç¨ãªãã¸ã§ã¯ãã®åå¾
Set objShell = WScript.CreateObject("WScript.Shell")
strMode = objShell.Environment("Process").Item("PROCESSOR_ARCHITECTURE")
-'JDKÌWXgL[ðZbg
-If UCase(strMode) = "X86" Then
- regJDKkey = "HKLM\SOFTWARE\JavaSoft\Java Development Kit"
-Else
- regJDKkey = "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit"
+'JDKã®ã¬ã¸ã¹ããªãã¼ãã»ãã
+regJDKkey = "HKLM\SOFTWARE\JavaSoft\Java Development Kit"
+If not (UCase(strMode) = "X86") Then
+ '64bit OS
+ On Error Resume Next
+ regJDKkey = regJDKkey + "\"
+ If IsNull(objShell.RegRead(regJDKkey)) Then
+ 'ãã¼ãåå¨ããªã
+ '64bitã®OSä¸ã«32bitçã®Javaãã¤ã³ã¹ãã¼ã«ããã¦ãã
+ regJDKkey = "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit"
+ End If
End If
-'WXg©çJDKJgo[Wðæ¾
+'ã¬ã¸ã¹ããªããJDKã«ã¬ã³ããã¼ã¸ã§ã³ãåå¾
'objShell.RegRead("HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion")
-'±êªAá¦Î"1.5"¾Æ·éÆA
+'ããããä¾ãã°"1.5"ã ã¨ããã¨ã
'HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.5\JavaHome
-'ÉJDKJgo[WÌ[gtH_ªLÚ³êÄ¢é
+'ã«JDKã«ã¬ã³ããã¼ã¸ã§ã³ã®ã«ã¼ããã©ã«ããè¨è¼ããã¦ãã
Javahome = regJDKkey & "\" & objShell.RegRead(regJDKkey & "\CurrentVersion") & "\JavaHome"
-'JDKJgo[WÌ[gtH_Javahome̺Ìbin\orbd.exeªÚIÌÀst@C
+'JDKã«ã¬ã³ããã¼ã¸ã§ã³ã®ã«ã¼ããã©ã«ãJavahomeã®ä¸ã®bin\orbd.exeãç®çã®å®è¡ãã¡ã¤ã«
targetexe = """" & objShell.RegRead(Javahome) & "\bin\orbd.exe"""
-'ÚIÌÀst@CtargetexeðKØÈIvVð¯ÄÀs³¹é
+'ç®çã®å®è¡ãã¡ã¤ã«targetexeãé©åãªãªãã·ã§ã³ãã¤ãã¦å®è¡ããã
objShell.Run targetexe & " -ORBInitialPort 2809 -ORBInitialHost localhost -defaultdb ""%TEMP%""\orb.db"
-'±êÍá¦ÎAÌæ¤È±ÆðâÁÄéB½¾µAìÆfBNgð[U[ÌtemptH_ÉwèB
+'ããã¯ä¾ãã°ã次ã®ãããªãã¨ããã£ã¦ãããã ããä½æ¥ãã£ã¬ã¯ããªãã¦ã¼ã¶ã¼ã®tempãã©ã«ãã«æå®ã
'cf:objShell.Run """C:\Program Files\Java\jdk1.5.0_14\bin\orbd.exe"" -ORBInitialPort 2809 -ORBInitialHost localhost"
-'êIuWFNgðJú
+'ä¸å¿ãªãã¸ã§ã¯ããéæ¾
Set objShell = Nothing
' **********************************************************
-' OS o[WÌæ¾
+' OS ãã¼ã¸ã§ã³ã®åå¾
' **********************************************************
Function GetOSVersion()
@@ -55,4 +61,4 @@
GetOSVersion = CDbl( strWork )
-End Function
\ No newline at end of file
+End Function
Modified: trunk/jp.go.aist.rtm.RTC/installer/resources/Source/examples/start-orbd.vbs
===================================================================
--- trunk/jp.go.aist.rtm.RTC/installer/resources/Source/examples/start-orbd.vbs 2015-01-21 06:37:32 UTC (rev 725)
+++ trunk/jp.go.aist.rtm.RTC/installer/resources/Source/examples/start-orbd.vbs 2015-02-05 02:10:42 UTC (rev 726)
@@ -1,42 +1,48 @@
-'orbdN®pXNvg
-'{XNvgÍ«ÏTEMPªÝè³êÄ¢é±ÆðOñƵܷ
-'ȨA«ÏTEMPÍÊáOSÉæèftHgÅÝè³êĢܷ
+'orbdèµ·åç¨ã¹ã¯ãªãã
+'æ¬ã¹ã¯ãªããã¯ç°å¢å¤æ°TEMPãè¨å®ããã¦ãããã¨ãåæã¨ãã¾ã
+'ãªããç°å¢å¤æ°TEMPã¯éä¾OSã«ããããã©ã«ãã§è¨å®ããã¦ãã¾ã
-'N®pIuWFNgÌæ¾
+'èµ·åç¨ãªãã¸ã§ã¯ãã®åå¾
Set objShell = WScript.CreateObject("WScript.Shell")
strMode = objShell.Environment("Process").Item("PROCESSOR_ARCHITECTURE")
-'JDKÌWXgL[ðZbg
-If UCase(strMode) = "X86" Then
- regJDKkey = "HKLM\SOFTWARE\JavaSoft\Java Development Kit"
-Else
- regJDKkey = "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit"
+'JDKã®ã¬ã¸ã¹ããªãã¼ãã»ãã
+regJDKkey = "HKLM\SOFTWARE\JavaSoft\Java Development Kit"
+If not (UCase(strMode) = "X86") Then
+ '64bit OS
+ On Error Resume Next
+ regJDKkey = regJDKkey + "\"
+ If IsNull(objShell.RegRead(regJDKkey)) Then
+ 'ãã¼ãåå¨ããªã
+ '64bitã®OSä¸ã«32bitçã®Javaãã¤ã³ã¹ãã¼ã«ããã¦ãã
+ regJDKkey = "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Development Kit"
+ End If
End If
-'WXg©çJDKJgo[Wðæ¾
+'ã¬ã¸ã¹ããªããJDKã«ã¬ã³ããã¼ã¸ã§ã³ãåå¾
'objShell.RegRead("HKLM\SOFTWARE\JavaSoft\Java Development Kit\CurrentVersion")
-'±êªAá¦Î"1.5"¾Æ·éÆA
+'ããããä¾ãã°"1.5"ã ã¨ããã¨ã
'HKLM\SOFTWARE\JavaSoft\Java Development Kit\1.5\JavaHome
-'ÉJDKJgo[WÌ[gtH_ªLÚ³êÄ¢é
+'ã«JDKã«ã¬ã³ããã¼ã¸ã§ã³ã®ã«ã¼ããã©ã«ããè¨è¼ããã¦ãã
Javahome = regJDKkey & "\" & objShell.RegRead(regJDKkey & "\CurrentVersion") & "\JavaHome"
-'JDKJgo[WÌ[gtH_Javahome̺Ìbin\orbd.exeªÚIÌÀst@C
+'JDKã«ã¬ã³ããã¼ã¸ã§ã³ã®ã«ã¼ããã©ã«ãJavahomeã®ä¸ã®bin\orbd.exeãç®çã®å®è¡ãã¡ã¤ã«
targetexe = """" & objShell.RegRead(Javahome) & "\bin\orbd.exe"""
-'ÚIÌÀst@CtargetexeðKØÈIvVð¯ÄÀs³¹é
+'ç®çã®å®è¡ãã¡ã¤ã«targetexeãé©åãªãªãã·ã§ã³ãã¤ãã¦å®è¡ããã
objShell.Run targetexe & " -ORBInitialPort 2809 -ORBInitialHost localhost -defaultdb ""%TEMP%""\orb.db"
-'±êÍá¦ÎAÌæ¤È±ÆðâÁÄéB½¾µAìÆfBNgð[U[ÌtemptH_ÉwèB
+'ããã¯ä¾ãã°ã次ã®ãããªãã¨ããã£ã¦ãããã ããä½æ¥ãã£ã¬ã¯ããªãã¦ã¼ã¶ã¼ã®tempãã©ã«ãã«æå®ã
'cf:objShell.Run """C:\Program Files\Java\jdk1.5.0_14\bin\orbd.exe"" -ORBInitialPort 2809 -ORBInitialHost localhost"
-'êIuWFNgðJú
+'ä¸å¿ãªãã¸ã§ã¯ããéæ¾
Set objShell = Nothing
' **********************************************************
-' OS o[WÌæ¾
+' OS ãã¼ã¸ã§ã³ã®åå¾
' **********************************************************
Function GetOSVersion()
@@ -55,4 +61,4 @@
GetOSVersion = CDbl( strWork )
-End Function
\ No newline at end of file
+End Function
More information about the openrtm-commit
mailing list