When you start Tomcat with catalina.sh (or catalina.bat), the temp directory is set with the CATALINA_TMPDIR variable:
if [ -z "$CATALINA_TMPDIR" ] ; then
# Define the java.io.tmpdir to use for Catalina
CATALINA_TMPDIR="$CATALINA_BASE"/temp
fi
Also you can pass below as VM argument while starting Tomcat in Eclipse to use it as temp directory.
-Djava.io.tmpdir="C:Program Filesliferay-portal-5.2.3-tomcat-6.0omcat-6.0.18emp"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…