Hi Jianwu and Christopher.<div>   :)</div><div>   Thank you very much, it works well now under Windows XP.</div><div><br></div><div>----Joy ^_^<br><br><div class="gmail_quote">2012/11/8 Christopher Brooks <span dir="ltr"><<a href="mailto:cxh@eecs.berkeley.edu" target="_blank">cxh@eecs.berkeley.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Jianwu,<br>
    Thanks, your changes fixed the problem for me under Windows 2003.<span class="HOEnZb"><font color="#888888"><br>
    <br>
    _Christopher</font></span><div><div class="h5"><br>
    <br>
    <div>On 11/7/12 11:29 AM, Jianwu Wang wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div>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 cols="72">Best wishes

Sincerely yours

Jianwu Wang, Ph.D.
<a href="mailto:jianwu@sdsc.edu" target="_blank">jianwu@sdsc.edu</a>
<a href="http://users.sdsc.edu/%7Ejianwu/" target="_blank">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 type="cite">
        
        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("<a href="http://os.name" target="_blank">os.name</a>").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>On 11/7/12 5:00 AM, Ô¬¸Ö wrote:<br>
        </div>
        <blockquote type="cite"><span style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">Hello,</span>
          <div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif"> 
                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-size:14px;font-family:arial,sans-serif"><br>
          </div>
          <div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif">============================</div>
          <div style="color:rgb(34,34,34);font-size:14px;font-family:arial,sans-serif"> 
                     [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></fieldset>
          <br>
          <pre>_______________________________________________
Kepler-users mailing list
<a href="mailto:Kepler-users@kepler-project.org" target="_blank">Kepler-users@kepler-project.org</a>
<a href="http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users" target="_blank">http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users</a>
</pre>
        </blockquote>
        <br>
        <pre 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>
    </blockquote>
    <br>
    <pre 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>
  </div></div></div>

</blockquote></div><br><br clear="all"><div><br></div><br><br>
</div>