The disable of Java Version Checking in Oracle Java 7 is a per user setting.
Edit ~/Library/Application\ Support/Oracle/Java/Deployment/deployment.properties and add the following line under the #deployment.properties section
deployment.macosx.check.update=false
also in version 40
mkdir -p "$3"/Users/"$useris"/Library/Application\ Support/Oracle/Java/Deployment/
cp "$3"/tmp/wrapper/deployment.properties "$3"/Users/"$useris"/Library/Application\ Support/Oracle/Java/Deployment/deployment.properties
chown -R "$useris":staff "$3"/Users/"$useris"/Library/Application\ Support/Oracle/Java/Deployment/deployment.properties
chmod -R 777 "$3"/Users/"$useris"/Library/Application\ Support/Oracle/
cp "$3"/tmp/wrapper/com.oracle.javadeployment.plist "$3"/Users/"$useris"/Library/Preferences/
chown "$useris":staff "$3"/Users/"$useris"/Library/Preferences/com.oracle.javadeployment.plist
chmod 775 "$3"/Users/"$useris"/Library/Preferences/com.oracle.javadeployment.plist
cp "$3"/tmp/wrapper/deployment.properties "$3"/Users/"$useris"/Library/Application\ Support/Oracle/Java/Deployment/deployment.properties
chown -R "$useris":staff "$3"/Users/"$useris"/Library/Application\ Support/Oracle/Java/Deployment/deployment.properties
chmod -R 777 "$3"/Users/"$useris"/Library/Application\ Support/Oracle/
cp "$3"/tmp/wrapper/com.oracle.javadeployment.plist "$3"/Users/"$useris"/Library/Preferences/
chown "$useris":staff "$3"/Users/"$useris"/Library/Preferences/com.oracle.javadeployment.plist
chmod 775 "$3"/Users/"$useris"/Library/Preferences/com.oracle.javadeployment.plist