<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Christopher and Joy,<br>
      <br>
          Thanks for pointing it out. I think my changes at r31041 fix
      the problem. You can run 'ant update' to have my changes. Please
      let me know if it is still a problem to you. Thanks. <br>
      <pre class="moz-signature" cols="72">Best wishes

Sincerely yours

Jianwu Wang, Ph.D.
<a class="moz-txt-link-abbreviated" href="mailto:jianwu@sdsc.edu">jianwu@sdsc.edu</a>
<a class="moz-txt-link-freetext" href="http://users.sdsc.edu/~jianwu/">http://users.sdsc.edu/~jianwu/</a>

Assistant Project Scientist
Scientific Workflow Automation Technologies (SWAT) Laboratory
San Diego Supercomputer Center
University of California, San Diego
San Diego, CA, U.S.A. </pre>
      On 11/7/12 8:01 AM, Christopher Brooks wrote:<br>
    </div>
    <blockquote cite="mid:509A85ED.2060209@eecs.berkeley.edu"
      type="cite">
      <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
      Hi Joy,<br>
      I can reproduce this under Windows 2003 from the Kepler svn devel
      tree.<br>
      <br>
      The problem appears to be that if the user home directory has a
      space in the path, then ant fails.  <br>
      Running "ant -v run-only" yields:<br>
      <blockquote type="cite">      [run] '-Duser.home=C:\Documents'<br>
              [run] 'and'<br>
              [run] 'Settings\cxh'</blockquote>
      <br>
      That is where the <br>
      <br>
      <blockquote type="cite">      [run]
        java.lang.NoClassDefFoundError: and</blockquote>
      line comes from.<br>
      <br>
      If I do<br>
      <blockquote type="cite">ant update -r '{2012-10-05}'<br>
        ant run</blockquote>
      <br>
      Then the problem goes away.<br>
      <br>
      I suspect this change:<br>
      <blockquote type="cite">$ svn log  src/org/kepler/build/Run.java<br>
------------------------------------------------------------------------<br>
        r30828 | jianwu | 2012-10-05 15:33:22 -0700 (Fri, 05 Oct 2012) |
        1 line<br>
        <br>
        update README.txt in trunk based on the file in kepler 2.3
        branch</blockquote>
      <br>
      <blockquote type="cite">bash-3.2$ svn diff -r 30827:30828
        src/org/kepler/build/Run.java<br>
        Index: src/org/kepler/build/Run.java<br>
===================================================================<br>
        --- src/org/kepler/build/Run.java       (revision 30827)<br>
        +++ src/org/kepler/build/Run.java       (revision 30828)<br>
        @@ -284,6 +284,10 @@<br>
                 }<br>
                 java.createJvmarg().setLine("-Xmx" + jvmMaxMemory);<br>
                 java.createJvmarg().setLine("-Xms" + jvmMinMemory);<br>
        +<br>
        +       // Pass user.home to sub-process<br>
        +       java.createJvmarg().setLine("-Duser.home=" +
        System.getProperty("user.home"));<br>
        +<br>
                 if ( System.getProperty("os.name").equals("Mac OS X")
        && main.equals(DEFAULT_MAIN) &&
        workflow.equals("") )<br>
                 {<br>
                     Module commonModule =
        ModuleTree.instance().getModuleByStemName("common");<br>
        @@ -549,6 +553,9 @@<br>
                 java.createJvmarg().setLine("-Xmx" + jvmMaxMemory);<br>
                 java.createJvmarg().setLine("-Xms" + jvmMinMemory);<br>
        <br>
        +       // Pass user.home to sub-process<br>
        +        java.createJvmarg().setLine("-Duser.home=" +
        System.getProperty("user.home"));<br>
        +<br>
                 handleRunProperties(java);<br>
                 java.createArg().setLine(args);<br>
        <br>
      </blockquote>
      <br>
      Jianwu, could you take a look?<br>
      <br>
      _Christopher<br>
      <br>
      <br>
      <div class="moz-cite-prefix">On 11/7/12 5:00 AM, 袁钢 wrote:<br>
      </div>
      <blockquote
cite="mid:CANeeom2eOSygsda3YPK_p+9w2252WDm_YMryWYSwQtcNYK8t-A@mail.gmail.com"
        type="cite"><span
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">Hello,</span>
        <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"> 
              I have downloaded the code ,and my OS is winXP. I can run
          the project in Eclipse successfully. But when i use the "ant
          run" in command line,or use the jar which packaged through the
          ant instruction,  the errors will occur as follows:</div>
        <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"><br>
        </div>
        <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)">============================</div>
        <div
style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14px;background-color:rgb(255,255,255)"> 
                   [run] RunClasspath:kepler-tasks
          F:\Scientific_Workflow\KeplerWorkflow\Kepl
          <div> ct\kepler-tasks\src</div>
          <div>      [run] RunClasspath:ptolemy
            F:\Scientific_Workflow\KeplerWorkflow\KeplerPro</div>
          <div>olemy\src</div>
          <div>      [run] Set environment variable: PATH =
            D:\Ruby187\bin;D:\WINDOWS\system32;</div>
          <div>OWS;D:\WINDOWS\System32\Wbem;D:\Program
            Files\TortoiseSVN\bin;D:\Program Files\C</div>
          <div>iles\Thunder
            Network\KanKan\Codecs;D:\Java\jdk1.6.0_25\bin;D:\Java\jdk1.6.0_25\j</div>
          <div>F:\tool4work\apache-tomcat-6.0.29\bin;F:\tool4work\apache-ant-1.8.0\bin;F:\apach</div>
          <div>-3.0.3-bin\apache-maven-3.0.3\bin;F:\MySql\bin;F:\tool4work\Apache-Subversion-1.</div>
          <div>;D:\Java\jdk1.6.0_25\lib\tools.jar;D:\R\R-2.15.2\bin;F:\Scientific_Workflow\Kepl</div>
          <div>low\KeplerProject\r\lib;F:\Scientific_Workflow\KeplerWorkflow\KeplerProject\comm</div>
          <div>F:\Scientific_Workflow\KeplerWorkflow\KeplerProject\common\lib\ptolemy\matlab</div>
          <div>      [run] java.lang.NoClassDefFoundError: and</div>
          <div>      [run] Caused by: java.lang.ClassNotFoundException:
            and</div>
          <div>       [run]     at
            java.net.URLClassLoader$1.run(URLClassLoader.java:202)</div>
          <div>      [run]     at
            java.security.AccessController.doPrivileged(Native Method)</div>
          <div>      [run]     at
            java.net.URLClassLoader.findClass(URLClassLoader.java:190)</div>
          <div>      [run]     at
            java.lang.ClassLoader.loadClass(ClassLoader.java:306)</div>
          <div>      [run]     at
            sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)</div>
          <div>      [run]     at
            java.lang.ClassLoader.loadClass(ClassLoader.java:247)</div>
          <div>      [run] Could not find the main class: and.  Program
            will exit.</div>
          <div>      [run] Exception in thread "main"</div>
          <div><br>
          </div>
          <div>BUILD FAILED</div>
          <div>F:\Scientific_Workflow\KeplerWorkflow\KeplerProject\build-area\build.xml:52:

            F:\</div>
          <div>fic_Workflow\KeplerWorkflow\KeplerProject\build-area\build.xml:52:

            Java returned</div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>    What's the matter with it?Please tell me how to solve
            it .Thank you very much.</div>
          <div> <br>
          </div>
          <div><br>
          </div>
          <div>------Joy</div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Kepler-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Kepler-users@kepler-project.org">Kepler-users@kepler-project.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a>
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" cols="72">-- 
Christopher Brooks, PMP                       University of California
CHESS Executive Director                      US Mail: 337 Cory Hall
Programmer/Analyst CHESS/Ptolemy/Trust        Berkeley, CA 94720-1774
ph: 510.643.9841                                (Office: 545Q Cory)
home: (F-Tu) 707.665.0131 cell: 707.332.0670 </pre>
    </blockquote>
    <br>
  </body>
</html>