Hi,<br><br>I am sorry to reply this mail so late because I went outing during the labour day.<br><br>Thanks very much again:)<br><br><div class="gmail_quote">在 2011年4月29日 下午6:12,Sathish Kumar <span dir="ltr">&lt;<a href="mailto:kingvsk@aol.com">kingvsk@aol.com</a>&gt;</span>写道:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

  
    
  
  <div text="#000000" bgcolor="#ffffff">
    Hi<font color="#000000">,<br>
      <br>
      Nice. Please send a copy of your reply mails to <span style="color: rgb(255, 0, 0);"></span></font><b><a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a></b>.
    So that all vtk users will get a chance to view the solutions.<br>
    <br>
    Thanks,<br><font color="#888888">
    Sathish,</font><div><div></div><div class="h5"><br>
    <br>
    On Friday 29 April 2011 02:37 PM, 林可 wrote:
    <blockquote type="cite">Oh, I did as you told me and It worked:)<br>
      <br>
      You are really so kind, thank you so much :-p<br>
      <br>
      <div class="gmail_quote">在 2011年4月29日 下午4:11,Sathish Kumar <span dir="ltr">&lt;<a href="mailto:kingvsk@aol.com" target="_blank">kingvsk@aol.com</a>&gt;</span>写
        道:<br>
        <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
          <div text="#000000" bgcolor="#ffffff"> Hi,<br>
            <br>
            Try to run following commands<br>
            <br>
            set PATH=%JAVA_HOME%\jre\bin;%PATH%;
            <br>
            java -jar XXX.jar<br>
            <font color="#888888"> <br>
              Sathish,</font>
            <div>
              <div><br>
                <br>
                <br>
                On Friday 29 April 2011 12:39 PM, 林可 wrote:
                <blockquote type="cite">Not yet...<br>
                  <br>
                  I checked JAVA_HOME and it is right.
                  (&quot;C:\sdk\Java\jdk1.6.0_22&quot;)....<br>
                  <br>
                  <div class="gmail_quote">在 2011年4月29日 下午2:57,Sathish
                    Kumar <span dir="ltr">&lt;<a href="mailto:kingvsk@aol.com" target="_blank">kingvsk@aol.com</a>&gt;</span>写
                    道:<br>
                    <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
                      <div text="#000000" bgcolor="#ffffff"> Is your
                        Problem Solved? <br>
                        <br>
                        That looks JAVA_HOME contains the wrong path.<br>
                        <font color="#888888"> <br>
                          Sathish,</font>
                        <div>
                          <div><br>
                            <br>
                            On Friday 29 April 2011 12:23 PM, 林可 wrote:
                            <blockquote type="cite">oh, this long text
                              of &quot;PATH&quot; derives from<span></span> using
                              &#39;System.out.println(&quot;java.library.path&quot;)&#39;,
                              the &quot;java.library.path&quot; contains something
                              called system path, which is the part <span style="color: rgb(255, 0, 0);">before </span>&quot;<span style="color: rgb(255, 0, 0);">C:\sdk\vtk-5.6.1\VTKbin\bin\Debug</span>&quot;
                              and I can&#39;t modify it, infact, my windows
                              &quot;PATH&quot; is the part include and after &quot;<span style="color: rgb(255, 0, 0);">C:\sdk\vtk-5.6.1\VTKbin\bin\Debug</span>;C:\dev\tools\apache-ant-1.7.0\bin;C:\sdk\Java\jdk1.......&quot;.<br>

                              <br>
                              I really hate windows :-| ....<br>
                              <br>
                              <div class="gmail_quote">在 2011年4月29日
                                下午2:26,Sathish Kumar <span dir="ltr">&lt;<a href="mailto:kingvsk@aol.com" target="_blank">kingvsk@aol.com</a>&gt;</span>写
                                道:<br>
                                <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
                                  <div text="#000000" bgcolor="#ffffff">
                                    Hi,<br>
                                    <br>
                                    I think the problem is in your path.
                                    Windows PATH should contain only
                                    backslashes. But your path contain
                                    &quot;C:/sdk/Java/jdk1.6.0_22/bin/../jre/bin&quot;.
                                    So please change the slashes to
                                    backslash.(/ to \). Check the blue
                                    colored text.
                                    <div><br>
                                      <br>
C:\sdk\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\sdk\Java\jdk1.6.0_22\jre\bin;C:/sdk/Java/jdk1.6.0_22/bin/../jre/bin/client;<font color="#3333ff">C:/sdk/Java/jdk1.6.0_22/bin/../jre/bin;</font><span style="color: rgb(255, 0, 0);">C:\sdk\vtk-5.6.1\VTKbin\bin\Debug</span>;C:\dev\tools\apache-ant-1.7.0\bin;C:\sdk\Java\jdk1.6.0_22\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\notes;c:\Program





                                      Files\XLView;C:\Utilities;C:\lotus\component;C:\Program


                                      Files\IBM\Personal
                                      Communications\;C:\Program
                                      Files\IBM\Trace
                                      Facility\;C:\lotus\compnent;C:\Program
                                      Files\Intel\WiFi\bin\;C:\Program
                                      Files\ThinkPad\ConnectUtilities;C:\MySQL\MySQL
                                      Server 5.5\bin;C:\Program
                                      Files\TortoiseSVN\bin;C:\Program
                                      Files\CMake
                                      2.8\bin;C:\sdk\python\Python27;C:\sdk\python\Python27\Scripts;C:\Program
                                      Files\Microsoft Visual
                                      Studio\Common\Tools\WinNT;C:\Program
                                      Files\Microsoft Visual
                                      Studio\Common\MSDev98\Bin;C:\Program
                                      Files\Microsoft Visual
                                      Studio\Common\Tools;C:\Program
                                      Files\Microsoft Visual
                                      Studio\VC98\bin;C:\Program
                                      Files\SSH Communications
                                      Security\SSH Secure Shell<br>
                                      <br>
                                      <br>
                                    </div>
                                    <font color="#888888"> Sathish</font>
                                    <div>
                                      <div><br>
                                        <br>
                                        <br>
                                        On Friday 29 April 2011 11:24
                                        AM, 林可 wrote:
                                        <blockquote type="cite">I copied
                                          awt.dll from my
                                          &quot;C:\sdk\Java\jdk1.6.0_22\jre\bin&quot;
                                          to my VTK lib dir &quot;<span style="color: rgb(0, 0, 0);">C:\sdk\vtk-5.6.1\VTKbin\bin\Debug</span>&quot;,



                                          but I still got the same
                                          error........ <span style="color: rgb(255, 0, 0);">UnsatisFiedLinkError:
                                            .... vtkRenderingJava.dll
                                            Can&#39;t find dependent
                                            libraries</span>, thanks
                                          very much anyway:)<br>
                                          <br>
                                          <div class="gmail_quote">2011/4/29
                                            Sathish Kumar <span dir="ltr">&lt;<a href="mailto:kingvsk@aol.com" target="_blank">kingvsk@aol.com</a>&gt;</span><br>
                                            <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
                                              <div text="#000000" bgcolor="#ffffff"> Hi,<br>
                                                <br>
                                                Try to add awt.dll to
                                                your vtk lib path.<br>
                                                <br>
                                                Sathish,
                                                <div>
                                                  <div><br>
                                                    <br>
                                                    On Friday 29 April
                                                    2011 07:21 AM, 林可
                                                    wrote: </div>
                                                </div>
                                                <blockquote type="cite">
                                                  <div>
                                                    <div>Hi, I
                                                      compressed a vtk
                                                      java wrapper demo
                                                      in to a jar file,
                                                      in which those vtk
                                                      libraries are
                                                      used:<br>
System.loadLibrary(&quot;vtkCommonJava&quot;);<br>
System.loadLibrary(&quot;vtkFilteringJava&quot;);<br>
System.loadLibrary(&quot;vtkIOJava&quot;);<br>
System.loadLibrary(&quot;vtkImagingJava&quot;);<br>
System.loadLibrary(&quot;vtkGraphicsJava&quot;);<br>
System.loadLibrary(&quot;vtkRenderingJava&quot;);<br>
                                                      <br>
                                                      The strange result
                                                      is when I
                                                      double-click the
                                                      xxx.jar file, it
                                                      runs well; but
                                                      when I use a
                                                      command line and
                                                      type &quot;java -jar
                                                      xxx.jar&quot;, I will
                                                      encounter an
                                                      UnsatisfiedLinkError
                                                      when loading <span style="color: rgb(255, 0, 0);">vtkRenderingJava</span>
                                                      except which the
                                                      other lib files
                                                      are correctly
                                                      loaded.<br>
                                                      <br>
                                                      here is my
                                                      environment:<br>
                                                      - Win32 XP<br>
                                                      - vtk5.6.1<br>
                                                      - jdk 1.6.0_22<br>
                                                      - cmake 2.8.4<br>
                                                      - visual studio
                                                      express 2008<br>
                                                      <br>
                                                      I also use Eclipse
                                                      to run the demo
                                                      directly, it also
                                                      runs well. So I
                                                      felt very strange.
                                                      <br>
                                                      <br>
                                                      I am wondering if
                                                      there are some jvm
                                                      arguments I missed
                                                      when try to launch
                                                      by &quot;java -jar
                                                      xxx.jar&quot;, or some
                                                      other reasons,
                                                      thanks in advance.<br>
                                                      <br>
                                                      I am sure the vtk
                                                      bin library is
                                                      included in the
                                                      &quot;PATH&quot; variant,
                                                      for my
                                                      java.library,path
                                                      is as follows:<br>
                                                      <br>
C:\sdk\Java\jdk1.6.0_22\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\sdk\Java\jdk1.6.0_22\jre\bin;C:/sdk/Java/jdk1.6.0_22/bin/../jre/bin/client;C:/sdk/Java/jdk1.6.0_22/bin/../jre/bin;<span style="color: rgb(255, 0, 0);">C:\sdk\vtk-5.6.1\VTKbin\bin\Debug</span>;C:\dev\tools\apache-ant-1.7.0\bin;C:\sdk\Java\jdk1.6.0_22\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\notes;c:\Program




                                                      Files\XLView;C:\Utilities;C:\lotus\component;C:\Program




                                                      Files\IBM\Personal
                                                      Communications\;C:\Program

                                                      Files\IBM\Trace
                                                      Facility\;C:\lotus\compnent;C:\Program
                                                      Files\Intel\WiFi\bin\;C:\Program


                                                      Files\ThinkPad\ConnectUtilities;C:\MySQL\MySQL


                                                      Server
                                                      5.5\bin;C:\Program
                                                      Files\TortoiseSVN\bin;C:\Program

                                                      Files\CMake
                                                      2.8\bin;C:\sdk\python\Python27;C:\sdk\python\Python27\Scripts;C:\Program
                                                      Files\Microsoft
                                                      Visual
                                                      Studio\Common\Tools\WinNT;C:\Program
                                                      Files\Microsoft
                                                      Visual
                                                      Studio\Common\MSDev98\Bin;C:\Program
                                                      Files\Microsoft
                                                      Visual
                                                      Studio\Common\Tools;C:\Program
                                                      Files\Microsoft
                                                      Visual
                                                      Studio\VC98\bin;C:\Program
                                                      Files\SSH
                                                      Communications
                                                      Security\SSH
                                                      Secure Shell<br>
                                                      <br>
                                                      Sincerely,<br>
                                                      Kevin Lin<br>
                                                      2011-04-29<br>
                                                    </div>
                                                  </div>
                                                  <pre><fieldset></fieldset>
_______________________________________________
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>

Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a>

Follow this link to subscribe/unsubscribe:
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
                                                </blockquote>
                                                <br>
                                              </div>
                                            </blockquote>
                                          </div>
                                          <br>
                                        </blockquote>
                                        <br>
                                      </div>
                                    </div>
                                  </div>
                                </blockquote>
                              </div>
                              <br>
                            </blockquote>
                            <br>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </blockquote>
                <br>
              </div>
            </div>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
    <br>
  </div></div></div>

</blockquote></div><br>