← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #230619]: [1.0] Works in Eclipse, but not from commandline using Ant build file to run it

 

Question #230619 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/230619

    Status: Needs information => Open

srijith gave more information on the question:
This is my Java version output 
java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

I execute the ant command in my project work space. 
ie run the ant command here
G:\Documents and Settings\Administrator\eworkspace\Sample>
where Sample in my project name.
Here is my system path for ant and sikuli JAR file
G:\Program Files (x86)\apache-ant-1.9.1\bin;G:\eclipse\sikuli-script.jar;

Here is my build.xml file
<?xml version="1.0" encoding="UTF-8"?>

<project default="run" name="DMM Automation -srijith">
<path id="classpath"> 
<pathelement location="G:\eclipse\selenium-2.33.0\selenium-java-2.33.0.jar"/> 
<pathelement location="G:\eclipse\selenium-server-standalone-2.33.0.jar"/>
<pathelement location="G:\eclipse\selenium-2.33.0\selenium-java-2.33.0-srcs.jar"/> 
<pathelement location="G:\eclipse\selenium-2.33.0\libs\*.jar"/>
<pathelement location="G:\eclipse\sikuli-script.jar"/> 
<pathelement location="G:\Program Files (x86)\SikuliX\*.jar"/>
</path>

	<target name="run" depends="compile">
	<java classname ="lib_files.Open" classpathref="classpath">
	
	<classpath path="staging"/>
	
	</java>
	</target>
	<target name="compile">
	<javac includeantruntime="false" srcdir="./src" destdir="staging" classpathref="classpath"/>
	</target>
</project>

Not sure if these are the information you are looking for

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.