<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=GB2312" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Is your Problem Solved? <br>
    <br>
    That looks JAVA_HOME contains the wrong path.<br>
    <br>
    Sathish,<br>
    <br>
    On Friday 29 April 2011 12:23 PM, 林可 wrote:
    <blockquote
      cite="mid:BANLkTikcjjWePOD-fKTPoWQuub3SnPxX1A@mail.gmail.com"
      type="cite">oh, this long text of "PATH" derives from<span
        class="phonetic"></span> using
      'System.out.println("java.library.path")', the "java.library.path"
      contains something called system path, which is the part <span
        style="color: rgb(255, 0, 0);">before </span>"<span
        style="color: rgb(255, 0, 0);">C:\sdk\vtk-5.6.1\VTKbin\bin\Debug</span>"
      and I can't modify it, infact, my windows "PATH" is the part
      include and after "<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.......".<br>
      <br>
      I really hate windows :-| ....<br>
      <br>
      <div class="gmail_quote">在 2011年4月29日 下午2:26,Sathish Kumar <span
          dir="ltr">&lt;<a moz-do-not-send="true"
            href="mailto:kingvsk@aol.com">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
            "C:/sdk/Java/jdk1.6.0_22/bin/../jre/bin". So please change
            the slashes to backslash.(/ to \). Check the blue colored
            text.
            <div class="im"><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 class="h5"><br>
                <br>
                <br>
                On Friday 29 April 2011 11:24 AM, 林可 wrote:
                <blockquote type="cite">I copied awt.dll from my
                  "C:\sdk\Java\jdk1.6.0_22\jre\bin" to my VTK lib dir "<span
                    style="color: rgb(0, 0, 0);">C:\sdk\vtk-5.6.1\VTKbin\bin\Debug</span>",

                  but I still got the same error........ <span
                    style="color: rgb(255, 0, 0);">UnsatisFiedLinkError:
                    .... vtkRenderingJava.dll Can'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 moz-do-not-send="true"
                        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("vtkCommonJava");<br>
                              System.loadLibrary("vtkFilteringJava");<br>
                              System.loadLibrary("vtkIOJava");<br>
                              System.loadLibrary("vtkImagingJava");<br>
                              System.loadLibrary("vtkGraphicsJava");<br>
                              System.loadLibrary("vtkRenderingJava");<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 "java -jar
                              xxx.jar", 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
                              "java -jar xxx.jar", or some other
                              reasons, thanks in advance.<br>
                              <br>
                              I am sure the vtk bin library is included
                              in the "PATH" 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 moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a>

Visit other Kitware open-source projects at <a moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true" 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>
  </body>
</html>