[kepler-users] can't "ant run" in command line

Christopher Brooks cxh at eecs.berkeley.edu
Wed Nov 7 12:41:42 PST 2012


Hi Jianwu,
Thanks, your changes fixed the problem for me under Windows 2003.

_Christopher

On 11/7/12 11:29 AM, Jianwu Wang wrote:
> Hi Christopher and Joy,
>
>     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.
> Best wishes
>
> Sincerely yours
>
> Jianwu Wang, Ph.D.
> jianwu at sdsc.edu
> http://users.sdsc.edu/~jianwu/
>
> Assistant Project Scientist
> Scientific Workflow Automation Technologies (SWAT) Laboratory
> San Diego Supercomputer Center
> University of California, San Diego
> San Diego, CA, U.S.A.
> On 11/7/12 8:01 AM, Christopher Brooks wrote:
>> Hi Joy,
>> I can reproduce this under Windows 2003 from the Kepler svn devel tree.
>>
>> The problem appears to be that if the user home directory has a space 
>> in the path, then ant fails.
>> Running "ant -v run-only" yields:
>>>       [run] '-Duser.home=C:\Documents'
>>>       [run] 'and'
>>>       [run] 'Settings\cxh'
>>
>> That is where the
>>
>>>       [run] java.lang.NoClassDefFoundError: and
>> line comes from.
>>
>> If I do
>>> ant update -r '{2012-10-05}'
>>> ant run
>>
>> Then the problem goes away.
>>
>> I suspect this change:
>>> $ svn log  src/org/kepler/build/Run.java
>>> ------------------------------------------------------------------------
>>> r30828 | jianwu | 2012-10-05 15:33:22 -0700 (Fri, 05 Oct 2012) | 1 line
>>>
>>> update README.txt in trunk based on the file in kepler 2.3 branch
>>
>>> bash-3.2$ svn diff -r 30827:30828 src/org/kepler/build/Run.java
>>> Index: src/org/kepler/build/Run.java
>>> ===================================================================
>>> --- src/org/kepler/build/Run.java       (revision 30827)
>>> +++ src/org/kepler/build/Run.java       (revision 30828)
>>> @@ -284,6 +284,10 @@
>>>          }
>>>          java.createJvmarg().setLine("-Xmx" + jvmMaxMemory);
>>>          java.createJvmarg().setLine("-Xms" + jvmMinMemory);
>>> +
>>> +       // Pass user.home to sub-process
>>> +       java.createJvmarg().setLine("-Duser.home=" + 
>>> System.getProperty("user.home"));
>>> +
>>>          if ( System.getProperty("os.name").equals("Mac OS X") && 
>>> main.equals(DEFAULT_MAIN) && workflow.equals("") )
>>>          {
>>>              Module commonModule = 
>>> ModuleTree.instance().getModuleByStemName("common");
>>> @@ -549,6 +553,9 @@
>>>          java.createJvmarg().setLine("-Xmx" + jvmMaxMemory);
>>>          java.createJvmarg().setLine("-Xms" + jvmMinMemory);
>>>
>>> +       // Pass user.home to sub-process
>>> +        java.createJvmarg().setLine("-Duser.home=" + 
>>> System.getProperty("user.home"));
>>> +
>>>          handleRunProperties(java);
>>>          java.createArg().setLine(args);
>>>
>>
>> Jianwu, could you take a look?
>>
>> _Christopher
>>
>>
>> On 11/7/12 5:00 AM, 袁钢 wrote:
>>> Hello,
>>>     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:
>>>
>>> ============================
>>>          [run] RunClasspath:kepler-tasks 
>>> F:\Scientific_Workflow\KeplerWorkflow\Kepl
>>> ct\kepler-tasks\src
>>>       [run] RunClasspath:ptolemy 
>>> F:\Scientific_Workflow\KeplerWorkflow\KeplerPro
>>> olemy\src
>>>       [run] Set environment variable: PATH = 
>>> D:\Ruby187\bin;D:\WINDOWS\system32;
>>> OWS;D:\WINDOWS\System32\Wbem;D:\Program 
>>> Files\TortoiseSVN\bin;D:\Program Files\C
>>> iles\Thunder 
>>> Network\KanKan\Codecs;D:\Java\jdk1.6.0_25\bin;D:\Java\jdk1.6.0_25\j
>>> F:\tool4work\apache-tomcat-6.0.29\bin;F:\tool4work\apache-ant-1.8.0\bin;F:\apach
>>> -3.0.3-bin\apache-maven-3.0.3\bin;F:\MySql\bin;F:\tool4work\Apache-Subversion-1.
>>> ;D:\Java\jdk1.6.0_25\lib\tools.jar;D:\R\R-2.15.2\bin;F:\Scientific_Workflow\Kepl
>>> low\KeplerProject\r\lib;F:\Scientific_Workflow\KeplerWorkflow\KeplerProject\comm
>>> F:\Scientific_Workflow\KeplerWorkflow\KeplerProject\common\lib\ptolemy\matlab
>>>       [run] java.lang.NoClassDefFoundError: and
>>>       [run] Caused by: java.lang.ClassNotFoundException: and
>>>       [run]     at 
>>> java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>>>       [run]     at 
>>> java.security.AccessController.doPrivileged(Native Method)
>>>       [run]     at 
>>> java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>>>       [run]     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>       [run]     at 
>>> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>       [run]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
>>>       [run] Could not find the main class: and.  Program will exit.
>>>       [run] Exception in thread "main"
>>>
>>> BUILD FAILED
>>> F:\Scientific_Workflow\KeplerWorkflow\KeplerProject\build-area\build.xml:52: 
>>> F:\
>>> fic_Workflow\KeplerWorkflow\KeplerProject\build-area\build.xml:52: 
>>> Java returned
>>>
>>>
>>>     What's the matter with it?Please tell me how to solve it .Thank 
>>> you very much.
>>>
>>>
>>> ------Joy
>>>
>>>
>>> _______________________________________________
>>> Kepler-users mailing list
>>> Kepler-users at kepler-project.org
>>> http://lists.nceas.ucsb.edu/kepler/mailman/listinfo/kepler-users
>>
>> -- 
>> 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
>

-- 
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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nceas.ucsb.edu/kepler/pipermail/kepler-users/attachments/20121107/f7e3e069/attachment.html>


More information about the Kepler-users mailing list