I have an ant project in a directory which has 2 directories: bin and src and two files build.xml and script.sh.
The script.sh has the command:
time java SomeTestClass
where SomeTestClass is a class in bin. The bash script is executed in build.xml using the following:
<target name="run">
    <exec executable="/bin/bash">
            <arg value="script.sh"/>
    </exec>
</target>
However when I build using ant I get an error:
[exec] Error: Could not find or load main class SomeTestClass
How can I have the bash script see the java class SomeTestClass? I tried adding ./bin/SomeTestClass in the bash script, but the error changed to:
Error: Could not find or load main class ..bin.SomeTestClass
 
     
     
    