Closed stewhdcs closed 11 years ago
What about etc/run.bat for Windows users?
Batch command line argmuments is limted to 9. I find the next solution but I don't know how to inetegrate with apache ant. Maybe someone could help.
@ECHO OFF
echo %1
echo %2
echo %3
echo %4
echo %5
echo %6
echo %7
echo %8
echo %9
shift
shift
shift
echo %7
echo %8
echo %9
PAUSE
This can be tweaked in build.xml.
After trying to run.sh, the following error occurs: $ etc/run.sh cc.twittertools.search.retrieval.RunQueryThrift -host ec2-107-22 -82-52.compute-1.amazonaws.com -port 9090 -queries data/queries.microblog2011.x ml Invalid maximum heap size: -Xmx4g The specified size exceeds the maximum representable size. Could not create the Java virtual machine.
This occurred on my Cygwin on my Windows 7 64bit machine.
This can be fixed by simply reducing Java memory from "java -Xmx4g" to "java -Xmx1g", etc, in etc/run.sh.