<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8697995308565582983</id><updated>2011-11-28T10:01:25.833+09:00</updated><category term='vbs'/><category term='wiki'/><category term='info'/><category term='diiop'/><category term='ls2j'/><category term='lotusscript'/><category term='java'/><category term='nsd'/><category term='sample'/><category term='xpages'/><category term='release info'/><title type='text'>Blog by Hirotaka - Lotus Notes/Domino support</title><subtitle type='html'>I'm Hirotaka Nagashima, an IBM Lotus Notes Technical Support.
 In this blog, I'd like to post good sample code and hot Lotus Notes/Domino information I found out when I was supporting my customer.

Note:
The postings on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
See also the page below for the IBM position regarding social computing

http://www.ibm.com/blogs/zz/en/guidelines.html</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-2773970181766192947</id><published>2010-04-28T11:30:00.000+09:00</published><updated>2010-04-28T11:30:26.531+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='lotusscript'/><category scheme='http://www.blogger.com/atom/ns#' term='sample'/><category scheme='http://www.blogger.com/atom/ns#' term='ls2j'/><title type='text'>LS2J: Replace string by using regular expression</title><content type='html'>I introduced the sample code to use regular expression but some of guys still believe that this kind of code can be performed by using @contains or other LotusScript code.. I should have used more complicated matching to show the power of regular expressions.&lt;br /&gt;&lt;br /&gt;As more practical sample, today I'd like to introduce another sample code to use regular expressions. (still not complicated)&lt;br /&gt;&lt;br /&gt;Regular expression is very powerful when you want to replace the chunk of strings.&lt;br /&gt;Please note that LS2J needs to load jvm when running the agent. so intensive use of this function might be slower than normal LotusScript application.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: grey; font-family: 'ＭＳ Ｐゴシック', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="font-family: monospace; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;div style="color: black; font-family: sans-serif; font-size: 9pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: blue;"&gt;Uselsx&lt;/span&gt; &lt;span style="color: black;"&gt;"*javacon"&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black; font-family: sans-serif; font-size: 9pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: blue;"&gt;Sub&lt;/span&gt; Click&lt;span style="color: blue;"&gt;(&lt;/span&gt;Source &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;Button&lt;/span&gt;&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; b &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;Boolean&lt;/span&gt;&lt;br /&gt; &lt;span style="color: black;"&gt;teststr$&lt;/span&gt; &lt;span style="color: blue;"&gt;=&lt;/span&gt; &lt;span style="color: black;"&gt;"[09D4:000D-0D50] 2008/09/18 15:45:26   HTTP Server: Error - Memory allocation error"&lt;/span&gt;&lt;br /&gt; &lt;span style="color: green;"&gt;' Regular expression to match Thread ID part （[09D4:000D-0D50]）&lt;/span&gt;&lt;br /&gt; &lt;span style="color: black;"&gt;regex$&lt;/span&gt; &lt;span style="color: blue;"&gt;=&lt;/span&gt; &lt;span style="color: black;"&gt;"\[[\p{Alnum}:-]*\]"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;' regex$ = "\[[a-zA-Z0-9:-]*\]"&lt;/span&gt;&lt;br /&gt; &lt;span style="color: black;"&gt;replacedstr$&lt;/span&gt; &lt;span style="color: blue;"&gt;=&lt;/span&gt; &lt;span style="color: black;"&gt;""&lt;/span&gt;&lt;br /&gt; &lt;span style="color: black;"&gt;result$&lt;/span&gt; &lt;span style="color: blue;"&gt;=&lt;/span&gt; ReplaceString&lt;span style="color: blue;"&gt;(&lt;/span&gt;&lt;span style="color: black;"&gt;testStr$&lt;/span&gt;&lt;span style="color: blue;"&gt;,&lt;/span&gt;&lt;span style="color: black;"&gt;regex$&lt;/span&gt;&lt;span style="color: blue;"&gt;,&lt;/span&gt; &lt;span style="color: black;"&gt;replacedstr$&lt;/span&gt;&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Msgbox&lt;/span&gt; &lt;span style="color: black;"&gt;"Input: "&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: black;"&gt;teststr$&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: blue;"&gt;Chr&lt;/span&gt;&lt;span style="color: blue;"&gt;(&lt;/span&gt;13&lt;span style="color: blue;"&gt;)&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: black;"&gt;"Pattern: "&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: black;"&gt;regex$&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;;&lt;/span&gt; &lt;span style="color: black;"&gt;" -&amp;gt; "&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;;&lt;/span&gt; &lt;span style="color: black;"&gt;replacedstr$&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;a;&lt;/span&gt; &lt;span style="color: blue;"&gt;Chr&lt;/span&gt;&lt;span style="color: blue;"&gt;(&lt;/span&gt;13&lt;span style="color: blue;"&gt;)&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: black;"&gt;result$&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Function&lt;/span&gt; ReplaceString&lt;span style="color: blue;"&gt;(&lt;/span&gt;InputStr &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;String&lt;/span&gt; &lt;span style="color: blue;"&gt;,&lt;/span&gt; RegEx &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;String&lt;/span&gt;&lt;span style="color: blue;"&gt;,&lt;/span&gt; ReplacedStr &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;String&lt;/span&gt;&lt;span style="color: blue;"&gt;)&lt;/span&gt; &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;String&lt;/span&gt;&lt;br /&gt; &lt;span style="color: green;"&gt;' RepleaceString: This function  is to replace the string by using regular expression.&lt;br /&gt;&lt;/span&gt;        &lt;span style="color: green;"&gt;' See following reference site for Java regular expressions&lt;/span&gt;&lt;/div&gt;&lt;div style="color: green; font-family: sans-serif; font-size: 9pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;        ' URL: http://java.sun.com/j2se/1.5.0/ja/docs/ja/api/java/util/regex/Pattern.html&lt;br /&gt; &lt;span style="color: green;"&gt;' InputStr: Strings to be replaced&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black; font-family: sans-serif; font-size: 9pt; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;"&gt;&lt;span style="color: green;"&gt;        ' RegEx: Regular expression to replace target string&lt;/span&gt;&lt;br /&gt; &lt;span style="color: green;"&gt;' ReplacedStr: Strings To Replace&lt;/span&gt;&lt;br /&gt; &lt;span style="color: green;"&gt;' Return Value: Replaced String&lt;/span&gt;&lt;br /&gt; &lt;span style="color: green;"&gt;' Note: Do not forget declaring Uselsx "*javacon"&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; j &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;JavaSession&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; c &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;JavaClass&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; pattern &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;JavaObject&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; matcher &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;JavaObject&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; e &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;JavaError&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Set&lt;/span&gt; j &lt;span style="color: blue;"&gt;=&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; &lt;span style="color: black;"&gt;JavaSession&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Set&lt;/span&gt; c &lt;span style="color: blue;"&gt;=&lt;/span&gt; j&lt;span style="color: blue;"&gt;.&lt;/span&gt;GetClass&lt;span style="color: blue;"&gt;(&lt;/span&gt;&lt;span style="color: black;"&gt;"java.util.regex.Pattern"&lt;/span&gt;&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Set&lt;/span&gt; pattern &lt;span style="color: blue;"&gt;=&lt;/span&gt; c&lt;span style="color: blue;"&gt;.&lt;/span&gt;compile&lt;span style="color: blue;"&gt;(&lt;/span&gt;RegEx&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Set&lt;/span&gt; matcher &lt;span style="color: blue;"&gt;=&lt;/span&gt; pattern&lt;span style="color: blue;"&gt;.&lt;/span&gt;matcher&lt;span style="color: blue;"&gt;(&lt;/span&gt;InputStr&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt; ReplaceString &lt;span style="color: blue;"&gt;=&lt;/span&gt; matcher&lt;span style="color: blue;"&gt;.&lt;/span&gt;replaceAll&lt;span style="color: blue;"&gt;(&lt;/span&gt;ReplacedStr&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Function&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: 'MS PGothic'; font-size: medium; white-space: normal;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;Hope it helps!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-2773970181766192947?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/2773970181766192947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/04/ls2j-replace-string-by-using-regular.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/2773970181766192947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/2773970181766192947'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/04/ls2j-replace-string-by-using-regular.html' title='LS2J: Replace string by using regular expression'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-8846005924385106161</id><published>2010-04-26T02:30:00.000+09:00</published><updated>2010-04-26T02:30:40.701+09:00</updated><title type='text'>mandatory fix for Lotus iNotes 8.5.1 FP2 users</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;Supplemental DLL is released for Lotus iNotes 8.5.1 FP2 users.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: 'MS PGothic', sans-serif; font-size: 13px; line-height: 16px;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h1 class="smalltitle" style="font-family: 'MS UI Gothic', arial, sans-serif; font-size: 15px; font-style: normal; font-weight: bold; line-height: 20px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 3px;"&gt;&lt;a href="http://www.ibm.com/support/docview.wss?uid=swg21428777"&gt;Lotus iNotes supplemental DLL file (dwabho.dll) for Domino 8.5.1 Fix Pack 2 (851FP2)&lt;/a&gt;&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;This file (dwabho.dll) is used in iNotes browser cache management and this file should have been included in Lotus Domino 8.5.1 FP2. if you're not familiar with the browser cache management, please also refer to this &lt;a href="http://www-01.ibm.com/support/docview.wss?uid=swg21239768"&gt;technote&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;the confusing point is file name. you may feel like the file extension "dll" does not fit non-Windows platform but this is for Internet explorer such as Windows XP or Windows 7.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-8846005924385106161?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/8846005924385106161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/04/mandatory-fix-for-lotus-inotes-851-fp2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/8846005924385106161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/8846005924385106161'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/04/mandatory-fix-for-lotus-inotes-851-fp2.html' title='mandatory fix for Lotus iNotes 8.5.1 FP2 users'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-4866054492596984858</id><published>2010-04-10T11:40:00.000+09:00</published><updated>2010-04-10T11:40:00.228+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='xpages'/><category scheme='http://www.blogger.com/atom/ns#' term='sample'/><title type='text'>Great XPages sample application from OpenNTF</title><content type='html'>&amp;nbsp;Have you been already aware that a great XPages sample application is released from OpenNTF?&lt;br /&gt;I'm so excited to see this sample application.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.openntf.org/blogs/openntf.nsf/d6plinks/NHEF-8427T9"&gt;New Release of XPages Demo Application for 8.5.1 including Notes Client&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;You can test almost all kind of XPages control in one application on browser or Notes client (8.5.1 or higher). It's really good for starting point of your XPages experience.&lt;br /&gt;&lt;br /&gt;Setup is very simple.&lt;br /&gt;Just download the file and copy it to server and sign the design element from administrator client.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-4866054492596984858?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/4866054492596984858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/04/great-xpages-sample-application-from.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/4866054492596984858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/4866054492596984858'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/04/great-xpages-sample-application-from.html' title='Great XPages sample application from OpenNTF'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-7176449003302833544</id><published>2010-03-31T00:46:00.000+09:00</published><updated>2010-03-31T00:46:30.788+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='lotusscript'/><category scheme='http://www.blogger.com/atom/ns#' term='sample'/><category scheme='http://www.blogger.com/atom/ns#' term='ls2j'/><title type='text'>LS2J: Match string with regular expression</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;Have you ever tries LS2J in your LotusScript?&lt;br /&gt;This is the way to connect to Java class from LotusScript&lt;br /&gt;&lt;br /&gt;Some of you may not have lots of time to learn new technology, but there're only 9 classes for LS2J.&lt;br /&gt;&lt;br /&gt;As an example, I invoked&amp;nbsp;java.util.regex.Pattern class and java.util.regex.Matcher class for use of regular expression and this sample code shows simple regular expression string match. some people may be missing regular expression of Java or perl.. With LS2J, you can use it!&lt;br /&gt;&lt;br /&gt;See also following site to check what expressions can be used&lt;br /&gt;&lt;a href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html"&gt;Pattern class (Java SDK document)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;div style="color: black; font-family: sans-serif; font-size: 9pt;"&gt;&lt;span style="color: green;"&gt;' Module for LS2J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Uselsx&lt;/span&gt; &lt;span style="color: black;"&gt;"*javacon"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Sub&lt;/span&gt; Click&lt;span style="color: blue;"&gt;(&lt;/span&gt;Source &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;Button&lt;/span&gt;&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; b &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;Boolean&lt;/span&gt;&lt;br /&gt; &lt;span style="color: black;"&gt;teststr$&lt;/span&gt; &lt;span style="color: blue;"&gt;=&lt;/span&gt; &lt;span style="color: black;"&gt;"あああ"&lt;/span&gt;&lt;br /&gt; &lt;span style="color: green;"&gt;'"do not contain ASCII char = All of strings are DBCS"&lt;/span&gt;&lt;br /&gt; &lt;span style="color: black;"&gt;regex$&lt;/span&gt; &lt;span style="color: blue;"&gt;=&lt;/span&gt; &lt;span style="color: black;"&gt;"[^\p{ASCII}]*"&lt;/span&gt;&lt;br /&gt; &lt;span style="color: black;"&gt;replacedstr$&lt;/span&gt; &lt;span style="color: blue;"&gt;=&lt;/span&gt; &lt;span style="color: black;"&gt;"Test"&lt;/span&gt;&lt;br /&gt; b &lt;span style="color: blue;"&gt;=&lt;/span&gt; MatchString&lt;span style="color: blue;"&gt;(&lt;/span&gt;&lt;span style="color: black;"&gt;teststr$&lt;/span&gt; &lt;span style="color: blue;"&gt;,&lt;/span&gt;&lt;span style="color: black;"&gt;regex$&lt;/span&gt;&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Msgbox&lt;/span&gt; &lt;span style="color: black;"&gt;"Input: "&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: black;"&gt;teststr$&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: blue;"&gt;Chr&lt;/span&gt;&lt;span style="color: blue;"&gt;(&lt;/span&gt;13&lt;span style="color: blue;"&gt;)&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;;&lt;/span&gt; &lt;span style="color: black;"&gt;"Pattern string: "&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: black;"&gt;regex$&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: blue;"&gt;Chr&lt;/span&gt;&lt;span style="color: blue;"&gt;(&lt;/span&gt;13&lt;span style="color: blue;"&gt;)&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: black;"&gt;"Result:  "&lt;/span&gt; &lt;span style="color: blue;"&gt;&amp;amp;&lt;/span&gt; &lt;span style="color: blue;"&gt;Cstr&lt;/span&gt;&lt;span style="color: blue;"&gt;(&lt;/span&gt;b&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Function&lt;/span&gt; MatchString&lt;span style="color: blue;"&gt;(&lt;/span&gt; InputStr &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;String&lt;/span&gt;&lt;span style="color: blue;"&gt;,&lt;/span&gt; RegEx &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;String&lt;/span&gt;&lt;span style="color: blue;"&gt;)&lt;/span&gt; &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: blue;"&gt;Boolean&lt;/span&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;' InputStr: Input string to test&lt;/span&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;' RegEx: Regular expression formula for match&lt;/span&gt;&lt;br /&gt;&lt;span style="color: green;"&gt;' Return Value: True if matched&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; j &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;JavaSession&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; c &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;JavaClass&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; pattern &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;JavaObject&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; matcher &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;JavaObject&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Dim&lt;/span&gt; e &lt;span style="color: blue;"&gt;As&lt;/span&gt; &lt;span style="color: black;"&gt;JavaError&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Set&lt;/span&gt; j &lt;span style="color: blue;"&gt;=&lt;/span&gt; &lt;span style="color: blue;"&gt;New&lt;/span&gt; &lt;span style="color: black;"&gt;JavaSession&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Set&lt;/span&gt; c &lt;span style="color: blue;"&gt;=&lt;/span&gt; j&lt;span style="color: blue;"&gt;.&lt;/span&gt;GetClass&lt;span style="color: blue;"&gt;(&lt;/span&gt;&lt;span style="color: black;"&gt;"java.util.regex.Pattern"&lt;/span&gt;&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Set&lt;/span&gt; pattern &lt;span style="color: blue;"&gt;=&lt;/span&gt; c&lt;span style="color: blue;"&gt;.&lt;/span&gt;compile&lt;span style="color: blue;"&gt;(&lt;/span&gt;RegEx&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt; &lt;span style="color: blue;"&gt;Set&lt;/span&gt; matcher &lt;span style="color: blue;"&gt;=&lt;/span&gt; pattern&lt;span style="color: blue;"&gt;.&lt;/span&gt;matcher&lt;span style="color: blue;"&gt;(&lt;/span&gt;InputStr&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt; MatchString &lt;span style="color: blue;"&gt;=&lt;/span&gt;  matcher&lt;span style="color: blue;"&gt;.&lt;/span&gt;matches&lt;span style="color: blue;"&gt;(&lt;/span&gt;&lt;span style="color: blue;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;End&lt;/span&gt; &lt;span style="color: blue;"&gt;Function&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-7176449003302833544?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/7176449003302833544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/03/ls2j-match-string-with-regular.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/7176449003302833544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/7176449003302833544'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/03/ls2j-match-string-with-regular.html' title='LS2J: Match string with regular expression'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-6386508028582884831</id><published>2010-03-27T17:10:00.002+09:00</published><updated>2010-03-28T22:28:22.344+09:00</updated><title type='text'>Lotus Notes/Domino 8.5.1 FP2 is available!</title><content type='html'>&amp;nbsp;8.5.1 FP2 is now available&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www-10.lotus.com/ldd/nflsblog.nsf/dx/ND851FP2"&gt;Notes/Domino 8.5.1 Fix Pack 2 is available　(Notes From Lotus Support)&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif; font-size: 11px;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px;"&gt;You can get it from FixCentral but download link information would help you access more quickly.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif; font-size: 11px;"&gt;&lt;strong&gt;&lt;a href="http://www.blogger.com/goog_56155397"&gt;Download Options (Technote&amp;nbsp;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: 'MS PGothic', sans-serif; font-size: 13px; font-weight: normal; line-height: 16px;"&gt;&lt;b&gt;&lt;a href="http://www.blogger.com/goog_56155397"&gt;4025721&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif; font-size: 11px; font-weight: normal; line-height: normal;"&gt;&lt;strong&gt;&lt;a href="http://www-01.ibm.com/support/docview.wss?uid=swg24025721#FP2"&gt;)&lt;/a&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif; font-size: 11px;"&gt;&lt;strong&gt;&lt;span class="Apple-style-span" style="font-family: 'MS PGothic', sans-serif; font-size: 13px; font-weight: normal; line-height: 16px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif; font-size: 11px; font-weight: normal; line-height: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px;"&gt;We strongly recommend customer to apply FP2 since it contains a multiple important fix to prevent a critical problem.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px;"&gt;Fix list is available from &lt;a href="http://www-10.lotus.com/ldd/r5fixlist.nsf/8d1c0550e6242b69852570c900549a74/52f9218288b51dcb852576c600741f72?OpenDocument"&gt;Release Notice.&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px;"&gt;Personally, I am glad to know following fix is included in FP2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: verdana, arial, sans-serif;"&gt;&lt;span class="Apple-style-span" style="font-size: 11px;"&gt;&lt;b&gt;SPR# PALT5N5SE7&lt;span style="color: red; font-family: verdana, arial, sans-serif; font-size: 11px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;- If a view setting is changed via View-Customization, the changes will not stay if Shift-F9 is used to rebuild the view. With this fix, view customization will remain after rebuilding a view.&lt;span style="color: red; font-family: verdana, arial, sans-serif; font-size: 11px;"&gt;&amp;nbsp;&lt;/span&gt;If the view design is changed, the view customization will not be saved and must be re-applied by the user.&amp;nbsp;&lt;a href="http://www-01.ibm.com/support/docview.wss?uid=swg21112923" style="color: #5c81a7;"&gt;(Technote #1112923)&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-6386508028582884831?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/6386508028582884831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/03/lotus-notesdomino-851-fp2-is-available.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/6386508028582884831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/6386508028582884831'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/03/lotus-notesdomino-851-fp2-is-available.html' title='Lotus Notes/Domino 8.5.1 FP2 is available!'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-3280199535249819217</id><published>2010-03-27T17:00:00.000+09:00</published><updated>2010-03-27T17:00:06.199+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='diiop'/><category scheme='http://www.blogger.com/atom/ns#' term='sample'/><title type='text'>Implement a typical loop routine to the previous diiop sample</title><content type='html'>The most typical sample of Notes API would be open view, get one document and change/get item value.&lt;br /&gt;&lt;br /&gt;I previously posted a simple sample code for the beginner of DIIOP technology and some would want to know how to implement a typical Notes routine as follows.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;strong&gt;NABLoop.java&lt;/strong&gt;&lt;br /&gt;import lotus.domino.* ;&lt;br /&gt;&lt;br /&gt;public class NABLoop &lt;br /&gt;{&lt;br /&gt; static String host = "xxx.xxxx.com" ; // server address&lt;br /&gt; static String cName = "notes admin" ; //username&lt;br /&gt; static String dbname = "names.nsf"; // database (e.g. mail\\hnagashi.nsf)&lt;br /&gt; static String password = "password" ;  // internet password&lt;br /&gt;&lt;br /&gt;  public static void main(String args[]){&lt;br /&gt;     try{&lt;br /&gt;   Session s = NotesFactory.createSession(host,cName,password) ;&lt;br /&gt;   Database db = s.getDatabase("", dbname );&lt;br /&gt;&lt;br /&gt; if(!db.isOpen()){&lt;br /&gt;  db.open();&lt;br /&gt; }&lt;br /&gt;   View view = db.getView("People");&lt;br /&gt;     Document doc = view.getFirstDocument();&lt;br /&gt;   Document temp = null;&lt;br /&gt;   String title = db.getTitle();&lt;br /&gt;   String uname = s.getUserName();&lt;br /&gt;   &lt;br /&gt;   System.out.println("Session User Name： " + uname );&lt;br /&gt;   System.out.println("ServerName： " + db.getServer());&lt;br /&gt;   System.out.println("Title： " + title);&lt;br /&gt;&lt;br /&gt; while (doc != null)&lt;br /&gt; {&lt;br /&gt;  System.out.println("User Name: " + doc.getItemValueString("FullName"));&lt;br /&gt;  temp = view.getNextDocument(doc); &lt;br /&gt;  doc.recycle();   &lt;br /&gt;  doc = null;&lt;br /&gt;  doc = temp;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;        }catch(NotesException ne){&lt;br /&gt;   System.out.println(ne.id + ne.text);&lt;br /&gt;   ne.printStackTrace() ;&lt;br /&gt; }catch (Exception e){e.printStackTrace() ;}&lt;br /&gt;  }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;Hope it helps!&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-3280199535249819217?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/3280199535249819217/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/03/implement-typical-loop-routine-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/3280199535249819217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/3280199535249819217'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/03/implement-typical-loop-routine-to.html' title='Implement a typical loop routine to the previous diiop sample'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-2433762141426223929</id><published>2010-03-22T01:13:00.000+09:00</published><updated>2010-03-22T01:13:26.966+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='nsd'/><category scheme='http://www.blogger.com/atom/ns#' term='vbs'/><category scheme='http://www.blogger.com/atom/ns#' term='sample'/><title type='text'>Collecting NSD file using VBScript</title><content type='html'>&amp;nbsp;Some of you may have experience to create batch file to kick NSD command.&lt;br /&gt;I also created the batch file like that but I hated to edit the batch file every time it is copied to a different environment. this is why I created this command with VBScript.&lt;br /&gt;By using VBScript, I can access registry value thus Notes program/data directory information can be retrieved from the registry.&lt;br /&gt;&lt;br /&gt;You can run this VBS file just by copying it to any directory on your computer and double-click the file. so I think this sample is useful when you want to access Notes program/data directory automatically in the batch file.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre&gt;&lt;strong&gt;RunNSD.vbs&lt;/strong&gt;&lt;br /&gt;Function GetProgramDir()&lt;br /&gt;  GetProgramDir = ""&lt;br /&gt;  Dim objWshShell&lt;br /&gt;  Set objWshShell = WScript.CreateObject("WScript.Shell")&lt;br /&gt;  strValue = objWshShell.RegRead("HKLM\SOFTWARE\Lotus\Notes\Path")&lt;br /&gt;  if Right(strValue,1) &amp;lt;&amp;gt; "\" Then&lt;br /&gt;    strValue = strValue &amp;amp; "\"&lt;br /&gt;  End if&lt;br /&gt;  GetProgramDir = strValue &lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Function GetDataDir()&lt;br /&gt;  GetDataDir = ""&lt;br /&gt;  Dim objWshShell&lt;br /&gt;  Set objWshShell = WScript.CreateObject("WScript.Shell")&lt;br /&gt;  strValue = objWshShell.RegRead("HKLM\SOFTWARE\Lotus\Notes\DataPath")&lt;br /&gt;  if Right(strValue,1) &amp;lt;&amp;gt; "\" Then&lt;br /&gt;    strValue = strValue &amp;amp; "\"&lt;br /&gt;  End if&lt;br /&gt;  GetDataDir = strValue &lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Function IsWin2k()&lt;br /&gt; IsWin2k = False&lt;br /&gt; strComputer = "." &lt;br /&gt; Set objWMIService = GetObject("winmgmts:" _ &lt;br /&gt;     &amp;amp; "{impersonationLevel=impersonate}!\\" &amp;amp; strComputer &amp;amp; "\root\cimv2") &lt;br /&gt; Set colOperatingSystems = objWMIService.ExecQuery _ &lt;br /&gt;     ("Select * from Win32_OperatingSystem") &lt;br /&gt; For Each objOperatingSystem in colOperatingSystems &lt;br /&gt;     If Instr (objOperatingSystem.Caption, "Windows 2000") &amp;gt; 0 Then&lt;br /&gt;  IsWin2k = True&lt;br /&gt;     End If&lt;br /&gt; Next &lt;br /&gt;End Function&lt;br /&gt;&lt;br /&gt;Dim objWshShell&lt;br /&gt;Dim strCmdLine&lt;br /&gt;Set objWshShell = WScript.CreateObject("WScript.Shell")&lt;br /&gt;NSDPath = GetProgramDir() &amp;amp; "nsd.exe"&lt;br /&gt;objWshShell.CurrentDirectory = GetDataDir()&lt;br /&gt;&lt;br /&gt;If Not isWin2k() Then&lt;br /&gt;   strOption = " -detach"&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;strCmdLine = NSDPath &amp;amp; strOption&lt;br /&gt;objWshShell.Exec(strCmdLine)&lt;br /&gt;&lt;br /&gt;If Err.Number &amp;lt;&amp;gt; 0 Then&lt;br /&gt;  WScript.Echo "NSD Error " &amp;amp; Err.Description&lt;br /&gt;End If&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;b&gt;NOTE:&lt;/b&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;- This VBS file checks registry file regarding Notes client.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; If you want to run this file on the environment as follows, you need to change registry path.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; 1) Multi user installation&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; 2) Old version (prior to Lotus Notes 6.5.x)&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; 3) Lotus Domino Server&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;- "-detach" option is not actually needed on the latest version like 8.5.x or 8.0.x&amp;nbsp;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp; I added this option so that I just wanted to show OS check logic can be added&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;- If you want to clean up client after NSD execution, please change strOption as follows.&lt;/div&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&amp;nbsp;&amp;nbsp;strOption = " -DumpAndKill"&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-2433762141426223929?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/2433762141426223929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/03/collecting-nsd-file-using-vbscript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/2433762141426223929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/2433762141426223929'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/03/collecting-nsd-file-using-vbscript.html' title='Collecting NSD file using VBScript'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-6225470043525569639</id><published>2010-03-17T00:52:00.000+09:00</published><updated>2010-03-17T00:52:51.232+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='vbs'/><category scheme='http://www.blogger.com/atom/ns#' term='sample'/><title type='text'>Sendkeys method</title><content type='html'>When I set up an additional Domino server, I felt annoyed with typing server id password to console every time I launched domino server. Not to mention, you just need to reset server id password from administrator client to avoid this but I previously wrote following VBScript.&lt;br /&gt;(This file needs to be located on Domino program directory)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;htmlblock&gt;&lt;/htmlblock&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;b&gt;StartServer.vbs&lt;/b&gt;&lt;br /&gt;Dim WshShell&lt;br /&gt;set WshShell = CreateObject("WScript.Shell")&lt;br /&gt;WshShell.Run("nserver.exe")&lt;br /&gt;WScript.Sleep(100)&lt;br /&gt;WshShell.AppActivate("Lotus Domino Server")&lt;br /&gt;WshShell.SendKeys("password")&lt;br /&gt;WshShell.SendKeys("{Enter}")&lt;/blockquote&gt;&lt;br /&gt;See following page for the details about &lt;a href="http://msdn.microsoft.com/en-us/library/8c6yea83(VS.85).aspx"&gt;SendKeys method&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Yes, you should not do this. This is VERY dangerous - Password information is directly written on plain text file. However, this is interesting...&lt;br /&gt;&lt;br /&gt;I imagined that the VBS like following works like client automation testings tools!&lt;br /&gt;See the following VBS code. This script is open notes client and open mail database, quit notes.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;StartNotes.vbs&lt;/b&gt;&lt;br /&gt;# Edit blue variable to fit your environment.&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;Dim WshShell&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;set WshShell = CreateObject("WScript.Shell")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.Run("notes.exe")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WScript.Sleep(8000)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.AppActivate("Lotus Notes")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.SendKeys("&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;password&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.SendKeys("{Enter}")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WScript.Sleep(4000)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.SendKeys("^o")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.SendKeys("%i")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.SendKeys("&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;mailserver&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.SendKeys("{Enter}")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.SendKeys("%f")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.SendKeys("&lt;/span&gt;&lt;i&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;mail/xxxx.nsf&lt;/span&gt;&lt;/i&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.SendKeys("%o")&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WScript.Sleep(10000)&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;WshShell.SendKeys("%(fx)")&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I tried this script, but I saw that this cannot be run for a long time. you know, This kind of script is very timing-dependent.&lt;br /&gt;&lt;br /&gt;Anyway, it might be useless sample code, I just thought it was interesting.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-6225470043525569639?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/6225470043525569639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/03/sendkeys-method.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/6225470043525569639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/6225470043525569639'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/03/sendkeys-method.html' title='Sendkeys method'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-3148545179820560514</id><published>2010-03-16T08:22:00.000+09:00</published><updated>2010-03-16T08:22:53.351+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='info'/><category scheme='http://www.blogger.com/atom/ns#' term='wiki'/><title type='text'>Installing and configuring IBM Lotus Domino 8.5 on AIX</title><content type='html'>I noticed that following article is posted on &lt;a href="http://www-10.lotus.com/ldd/dominowiki.nsf/v"&gt;Lotus Notes And Domino Wik&lt;/a&gt;i.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www-10.lotus.com/ldd/dominowiki.nsf/dx/Installing_Domino_on_AIX_platform"&gt;Installing and configuring IBM Lotus Domino 8.5 on AIX&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This article covers not only detailed procedure of installing Domino on AIX, but also various AIX commands and start script and important configuration information&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-3148545179820560514?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/3148545179820560514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/03/installing-and-configuring-ibm-lotus.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/3148545179820560514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/3148545179820560514'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/03/installing-and-configuring-ibm-lotus.html' title='Installing and configuring IBM Lotus Domino 8.5 on AIX'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-3524740072387148474</id><published>2010-03-15T20:33:00.000+09:00</published><updated>2010-03-15T20:33:38.111+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='diiop'/><category scheme='http://www.blogger.com/atom/ns#' term='sample'/><title type='text'>Some comments on my sample (in the previous post..)</title><content type='html'>On the previous post, I did not explain the code at all so I added some comments on my sample code.&lt;br /&gt;&lt;br /&gt;Following line indicates that this code is a remote access application, thus this application uses NCSO.jar.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;Session s = NotesFactory.createSession(host,cName,password) ;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As this is called a "remote" access application, you need to specify host name to connect server.&lt;br /&gt;Local access application is used like this.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;Session s = NotesFactory.createSession() ;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What confuses you is that "local" access application may access the server, too.&lt;br /&gt;"local" just means that you use "local" notes client application dll to access Notes object and "remote" just means that application uses remote DIIOP-based procedure call (a.k.a ORB).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also, some experienced developer saw my code and felt like this...&lt;br /&gt;&lt;br /&gt;"Static variable for host name , user name and password in this code looks silly. I will handle this value as an argument value instead, which does not need compilation when I changed the value"&lt;br /&gt;&lt;br /&gt;Believe me... I did it intentionally..&lt;br /&gt;When investigating DIIOP issue/remote access application code issue in support scene, I always need to compile the code very frequently. so compilation is not the problem for my investigation. Rather, I wanted to avoid to forget the order of argument value or usage of aplication. That's why I preferred static value in sample code but feel free to change the same as you like.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-3524740072387148474?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/3524740072387148474/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/03/some-comments-on-my-sample-in-previous.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/3524740072387148474'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/3524740072387148474'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/03/some-comments-on-my-sample-in-previous.html' title='Some comments on my sample (in the previous post..)'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-8080494591960805021</id><published>2010-03-15T02:04:00.002+09:00</published><updated>2010-03-15T20:33:59.831+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='diiop'/><category scheme='http://www.blogger.com/atom/ns#' term='sample'/><title type='text'>A sample code for testing DIIOP feature</title><content type='html'>Today I want to introduce a testing code for users who have not had an enough experience of DIIOP or Notes Java class and want to learn DIIOP feature.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Preparation&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;1. Start HTTP &amp;amp; DIIOP task&lt;/b&gt;&lt;br /&gt;&amp;nbsp;To use DIIOP feature, you need to start HTTP task and DIIOP task beforehand.&lt;br /&gt;You can manually start these task like "load DIIOP" command or you can add these tasks to "ServerTasks" entry in your server Notes.ini file.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Install JDK&lt;/b&gt;&lt;br /&gt;&amp;nbsp;You also need to install JDK environment to compile DIIOP program.&lt;br /&gt;You can get JDK environment from here.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.ibm.com/java/jdk/"&gt;IBM JDK Download&lt;/a&gt;&lt;br /&gt;&lt;a href="http://java.com/download"&gt;Sun JDK Download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;On the sample in this article, you need to take so much care of Java version, but basically you need to use the same Java version as your Lotus Notes/Domino JRE environment.&lt;br /&gt;&amp;nbsp;To check your JRE version, use &lt;notes dir="" program=""&gt;\jvm\bin\java -fullversion command.&lt;/notes&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Example:&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #00cc11; font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;C:\lotus\notes\jvm\bin&amp;gt;java -fullversion&lt;br style="letter-spacing: 0px;" /&gt;java full version "J2RE 1.5.0 IBM Windows 32 build pwi32devifx-20071025 (SR6b)"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. Copy NCSO.jar&lt;/b&gt;&lt;br /&gt;&amp;nbsp;On using remote access application ( I mean the Java program which uses NCSO.jar, not Notes.jar) , you don't need to install Lotus Notes client on client environment.&lt;br /&gt;You just copy NCSO.jar file to your client machine.&lt;br /&gt;NCSO.jar file is located on &lt;notes data="" directory=""&gt;\domino\java&lt;/notes&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Sample Code&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&amp;nbsp;On this article, you don't need to prepare sample database to run the sample.&lt;br /&gt;This sample code just accesses the specified server and opens names.nsf on the Domino server and get some database information.&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;strong style="font-weight: bold;"&gt;NABTest.java &amp;nbsp;(Change the variable in blue to fit your environment)&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre style="font-family: Osaka-等幅, 'Lucida Console', monospace; margin-bottom: 0.5em; margin-left: 0px; margin-right: 0px; margin-top: 0.5em; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; white-space: pre;"&gt;import lotus.domino.* ;&lt;br /&gt;&lt;br /&gt;public class NABTest &lt;br /&gt;{&lt;br /&gt;&lt;span style="color: blue;"&gt; static String host = "xxxx.xxx.com" ; // server address&lt;br /&gt; static String cName = "notes admin" ; //username&lt;br /&gt; static String dbname = "names.nsf"; // database (e.g. mail\\hnagashi.nsf)&lt;br /&gt; static String password = "password" ;  // internet password&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  public static void main(String args[]){&lt;br /&gt;     try{&lt;br /&gt;   Session s = NotesFactory.createSession(host,cName,password) ;&lt;br /&gt;   Database db = s.getDatabase("", dbname );&lt;br /&gt; if(!db.isOpen()){&lt;br /&gt;  db.open();&lt;br /&gt; }&lt;br /&gt;   String title = db.getTitle();&lt;br /&gt;   String uname = s.getUserName();&lt;br /&gt;   &lt;br /&gt;   System.out.println("UserName： " + uname );&lt;br /&gt;   System.out.println("ServerName： " + db.getServer());&lt;br /&gt;   System.out.println("Title： " + title);&lt;br /&gt;&lt;br /&gt;        }catch(NotesException ne){&lt;br /&gt;   System.out.println(ne.id + ne.text);&lt;br /&gt;   ne.printStackTrace() ;&lt;br /&gt; }catch (Exception e){e.printStackTrace() ;}&lt;br /&gt;  }&lt;br /&gt;}&lt;/pre&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Compile and Execution&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;When you start to run DIIOP program, I think compiling DIIOP program would be the most difficult step for unfamiliar users. To compile program, you just add the path to NCSO.jar file to CLASSPATH but to avoid confusion, I usually create the batch file like this.&lt;br /&gt;(I used "C:\MyJava" directory as working directory)&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;strong style="font-weight: bold;"&gt;Compile.bat (Change the variable in blue)&lt;/strong&gt;&lt;br style="letter-spacing: 0px;" /&gt;set Java_HOME=&lt;span style="color: blue;"&gt;C:\SUN\Java\jdk1.6.0_06\bin&lt;/span&gt;&lt;br style="letter-spacing: 0px;" /&gt;set PATH=%Java_HOME%;%PATH%&lt;br style="letter-spacing: 0px;" /&gt;set CLASSPATH=&lt;span style="color: blue;"&gt;C:\lotus\notes\data\domino\java\NCSO.jar;C:\myjava&lt;/span&gt;&lt;br style="letter-spacing: 0px;" /&gt;javac -target 1.5 NABTest.java&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;b&gt;JAVA_HOME:&lt;/b&gt; &amp;nbsp;Full path to your JDK bin folder&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;b&gt;CLASSPATH:&lt;/b&gt;&amp;nbsp;Add work directory(C:\MyJava in the above sample) and full path to NCSO.jar&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;b&gt;Note:&lt;/b&gt; On the above sample. I used "-target 1.5" because Notes Domino 8.x uses Java 1.5.&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;so you need to specify "-target 1.4" when you uses Lotus Notes Domino 7.x&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #555555; font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;strong style="font-weight: bold;"&gt;run.bat&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;span class="Apple-style-span" style="color: #555555;"&gt;java -cp&amp;nbsp;&lt;span style="color: blue;"&gt;c:\MyJava;c:\lotus\notes\data\domino\java\NCSO.jar&lt;/span&gt;&amp;nbsp;NABTest&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="color: #073763;"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;Result&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&amp;nbsp;You will get the result like this.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;span class="Apple-style-span" style="color: #38761d;"&gt;C:\MyJava&amp;gt;run&lt;br style="letter-spacing: 0px;" /&gt;C:\MyJava&amp;gt;java -cp c:\MyJava;D:\lotus\notes\data\domino\java\NCSO.jar NABTest&lt;br style="letter-spacing: 0px;" /&gt;UserName： CN=notes admin/O=LTS&lt;br style="letter-spacing: 0px;" /&gt;ServerName： CN=ｘｘｘｘ/O=LTS&lt;br style="letter-spacing: 0px;" /&gt;Title： LTS's Directory&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: lime; font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;This is very cheap and simple code like "Hello World" code and&amp;nbsp;when I set up DIIOP test environment,&amp;nbsp;I am using this kind of code to test my environment is working correctly.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: Verdana, tahoma, 'MS UI Gothic', Osaka, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;Hope it helps!&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-8080494591960805021?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/8080494591960805021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/03/sample-code-for-testing-diiop-feature.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/8080494591960805021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/8080494591960805021'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/03/sample-code-for-testing-diiop-feature.html' title='A sample code for testing DIIOP feature'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-302581777424974848</id><published>2010-03-15T01:30:00.004+09:00</published><updated>2010-03-15T20:34:41.850+09:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='release info'/><title type='text'>Lotus Domino 8.5.1 FP1 IF1 for DAOS is released!</title><content type='html'>Now you can see&amp;nbsp;Lotus Domino 8.5.1 FP1 IF1 is available. See below link for details.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www-01.ibm.com/support/docview.wss?rs=899&amp;amp;uid=swg21423520"&gt;Domino 8.5.1 Fix Pack 1 Interim Fix 1 (8.5.1 FP1 IF1) - DAOS Fixes&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Although all of fix in this interim fix will be included in 8.5.1 FP2, it is recommended that customer who uses DAOS feature applies this fix immediately.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-302581777424974848?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/302581777424974848/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/03/lotus-domino-851-fp1-if1-for-daos-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/302581777424974848'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/302581777424974848'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/03/lotus-domino-851-fp1-if1-for-daos-is.html' title='Lotus Domino 8.5.1 FP1 IF1 for DAOS is released!'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8697995308565582983.post-2825058016670263338</id><published>2010-03-15T01:08:00.000+09:00</published><updated>2010-03-15T01:08:29.126+09:00</updated><title type='text'>Just started my blog</title><content type='html'>I just launched my blog today&lt;br /&gt;I've been posting &lt;a href="http://hnagasim.blog8.fc2.com/"&gt;Japanese version blog&lt;/a&gt;, but I also wanted to have an English version.&lt;br /&gt;&lt;br /&gt;Stay tuned!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8697995308565582983-2825058016670263338?l=hnagasim.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://hnagasim.blogspot.com/feeds/2825058016670263338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://hnagasim.blogspot.com/2010/03/just-started-my-blog.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/2825058016670263338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8697995308565582983/posts/default/2825058016670263338'/><link rel='alternate' type='text/html' href='http://hnagasim.blogspot.com/2010/03/just-started-my-blog.html' title='Just started my blog'/><author><name>Hirotaka</name><uri>http://www.blogger.com/profile/04439922288661742531</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
