Facing issue in starting Bot Bot!!

632 views
Skip to first unread message

ultima...@gmail.com

unread,
Jul 8, 2013, 2:28:40 AM7/8/13
to bot-bo...@googlegroups.com
Hi All,

I Just started learning the bot bot and when i am typing  ant server


I am getting this error:

C:\bot-bot-v0.82>ant server
Buildfile: C:\bot-bot-v0.82\build.xml

BUILD FAILED
C:\bot-bot-v0.82\build.xml:4: The following error occurred while executing this
line:
C:\bot-bot-v0.82\runner\build.xml:3: The following error occurred while executin
g this line:
C:\bot-bot-v0.82\runner\robo-build.xml:42: taskdef class com.android.ant.XPathTa
sk cannot be found
 using the classloader AntClassLoader[]

Total time: 1 second

I am using ant 1.8.4 and home is set for it

C:\bot-bot-v0.82>ant -version
Apache Ant(TM) version 1.8.4 compiled on May 22 2012

Android sdk is latest "Revision 22.0.1" and android_home path is also it in environment variable.

Please help.

Thanks
Gaurav

Varun Menon

unread,
Jul 8, 2013, 10:40:55 PM7/8/13
to bot-bo...@googlegroups.com
Hi Gaurav,

Do you have the following file under the ANDROID_HOME path that you had set.

$ANDROID_HOME/tools/lib/anttasks.jar

Regards
Varun


--
You received this message because you are subscribed to the Google Groups "Bot-Bot Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bot-bot-user...@googlegroups.com.
To post to this group, send email to bot-bo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bot-bot-users/b491e471-10b1-4222-bef3-c4e190a1d8ef%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Gaurav Kumar

unread,
Jul 8, 2013, 11:41:55 PM7/8/13
to bot-bo...@googlegroups.com
Hi Varun,

It has "ant-tasks.jar"

Thanks
Gaurav


--
You received this message because you are subscribed to a topic in the Google Groups "Bot-Bot Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bot-bot-users/AJtrsKbbKXk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bot-bot-user...@googlegroups.com.

To post to this group, send email to bot-bo...@googlegroups.com.

Varun Menon

unread,
Jul 9, 2013, 4:51:02 PM7/9/13
to bot-bo...@googlegroups.com
Hi Gaurav,

Can you modify the file "robo-build.xml" under the directory "runner" folder.
You have to modify the line no. 41 in the said file.

You will find the following code in it.

<path id="android.antlibs">
<pathelement path="${env.ANDROID_HOME}/tools/lib/anttasks.jar" />
</path>

Just correct the name of the anttasks.jar as it exists in your system.

Regards
Varun


Gaurav Kumar

unread,
Jul 10, 2013, 1:22:37 AM7/10/13
to bot-bo...@googlegroups.com
Hi Varun.

I have modified the name from  "anttasks.jar" to  "ant-tasks.jar" in robo-build.xml  but still i am getting same error.

Please help.

Thanks
Gaurav


Varun Menon

unread,
Jul 10, 2013, 10:32:56 PM7/10/13
to bot-bo...@googlegroups.com

Hi Gaurav,

I won't be able to help you right now with the fix as Im out of office. I will respond to you by tuesday.

Regards
Varun

Varun Menon

unread,
Jul 21, 2013, 1:15:13 AM7/21/13
to bot-bo...@googlegroups.com
Hi Gaurav,

Sorry for the late response, I have been out for work and was not able to look into the said issue.
Please find attached 2 ant xml configuration files along with this mail.

The said issue occurred because of the change in structure of android tools in version22.

You need to replace the robo-build.xml in the runner folder and build.xml in the recorder folder.
This should work, I had done a hard-coding of build-tools folder which came with android SDK v22 in the xml files as of now. Will do a proper fix on the master soon.

Regards
Varun 
robo-build.xml
build.xml

Gaurav Kumar

unread,
Jul 22, 2013, 1:34:28 AM7/22/13
to bot-bo...@googlegroups.com
Hi Varun,

Thanks for the files but it seems that i am still facing the same issue even after replacing files 


Thanks
Gaurav


On 21 July 2013 10:45, Varun Menon <meno...@gmail.com> wrote:
Hi Gaurav,

Sorry for the late response, I have been out for work and was not able to look into the said issue.
Please find attached 2 ant xml configuration files along with this mail.

The said issue occurred because of the change in structure of android tools in version22.

You need to replace the robo-build.xml in the runner folder and build.xml in the recorder folder.
This should work, I had done a hard-coding of build-tools folder which came with android SDK v22 in the xml files as of now. Will do a proper fix on the master soon.

Regards
Varun 


On Thu, Jul 11, 2013 at 8:02 AM, Varun Menon <meno...@gmail.com> wrote:

Hi Gaurav,

I won't be able to help you right now with the fix as Im out of office. I will respond to you by tuesday.

Regards
Varun


--
You received this message because you are subscribed to a topic in the Google Groups "Bot-Bot Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bot-bot-users/AJtrsKbbKXk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bot-bot-user...@googlegroups.com.
To post to this group, send email to bot-bo...@googlegroups.com.

Varun Menon

unread,
Jul 22, 2013, 2:36:42 AM7/22/13
to bot-bo...@googlegroups.com

Hi Gaurav,

 

Can you please send the logs so that I can help you.

I tried the scripts on my side and things worked fine.

 

Regards

Varun

--

You received this message because you are subscribed to the Google Groups "Bot-Bot Users" group.

To unsubscribe from this group and stop receiving emails from it, send an email to bot-bot-user...@googlegroups.com.


To post to this group, send email to bot-bo...@googlegroups.com.

Gaurav Kumar

unread,
Jul 22, 2013, 2:39:57 AM7/22/13
to bot-bo...@googlegroups.com
Hi Varun,

Please see log:


C:\bot-bot-v0.82>ant server
Buildfile: C:\bot-bot-v0.82\build.xml

BUILD FAILED
C:\bot-bot-v0.82\build.xml:4: The following error occurred while executing this
line:
C:\bot-bot-v0.82\runner\build.xml:3: The following error occurred while executin
g this line:
C:\bot-bot-v0.82\runner\robo-build.xml:49: taskdef class com.android.ant.XPathTa
sk cannot be found
 using the classloader AntClassLoader[]

Total time: 1 second

Thanks
Gaurav


Preeti

unread,
Jul 22, 2013, 5:45:27 AM7/22/13
to bot-bo...@googlegroups.com
Hi Gaurav,

I was also facing the same issue ,you can verify android_sdk is set as variable or not. as environment variables.

After setting that am not getting 

taskdef class com.android.ant.XPathTa
sk cannot be found
 using the classloader AntClassLoader[]

You can also try.

Thanks
Preeti

Preeti

unread,
Jul 22, 2013, 6:15:03 AM7/22/13
to bot-bo...@googlegroups.com
sorry ANDROID_HOME
and path is set to android-sdk then it worked for me but now getting different error,app crashing after ant recorder

Varun Menon

unread,
Jul 22, 2013, 8:18:32 AM7/22/13
to bot-bo...@googlegroups.com
Hi Gaurav,

Could you try what preeti has said. I checked the changes and you should not receive the above error with the latest changes.

Varun

Koushik Arvapally

unread,
Jan 21, 2014, 10:00:53 AM1/21/14
to bot-bo...@googlegroups.com
Hi Varun,

Please help me out on this....

I am facing an issue while using this "ant recorder" , in command prompt....


BUILD FAILED
C:\Users\Koushik.Arvapelli\Downloads\bot-bot\bot-bot-v0.82\build.xml:14: The fol

lowing error occurred while executing this line:
C:\Users\Koushik.Arvapelli\Downloads\bot-bot\bot-bot-v0.82\recorder\build.xml:10
6: The following error occurred while executing this line:
C:\Users\Koushik.Arvapelli\Downloads\bot-bot\bot-bot-v0.82\recorder\build.xml:18
9: Execute failed: java.io.IOException: Cannot run program "D:\selenium\MObile\a
dt-bundle-windows-x86_64-20131030\sdk\build-tools\17.0.0\dx.bat" (in directory "
C:\Users\Koushik.Arvapelli\Downloads\bot-bot\bot-bot-v0.82\recorder"): CreatePro
cess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
        at java.lang.Runtime.exec(Runtime.java:617)
        at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Jav
a13CommandLauncher.java:41)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:628)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)

        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.Main.runBuild(Main.java:851)
        at org.apache.tools.ant.Main.startAnt(Main.java:235)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:385)
        at java.lang.ProcessImpl.start(ProcessImpl.java:136)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
        ... 48 more

Total time: 39 seconds

Thanks

Varun Menon

unread,
Jan 21, 2014, 10:22:17 AM1/21/14
to bot-bo...@googlegroups.com
Hey Kaushik,

Take a look at appium or selendroid they support the similar native application automation.
I am also looking at integrating those into bot-bot but it may take some time.

Regards
Varun


Reply all
Reply to author
Forward
0 new messages