diff --git a/tools/dicttool/etc/dicttool_aosp b/tools/dicttool/etc/dicttool_aosp
index 09d65c691f6eebc4a11b5428f30a2771fc410f72..fc918f0f83ec40528efa1af0fa41bbf4306720f7 100755
--- a/tools/dicttool/etc/dicttool_aosp
+++ b/tools/dicttool/etc/dicttool_aosp
@@ -37,14 +37,9 @@ classname=com.android.inputmethod.latin.dicttool.Dicttool
 jarfile=dicttool_aosp.jar
 frameworkdir="$progdir"
 if [ ! -r "$frameworkdir/$jarfile" ]
-then
-    frameworkdir=`dirname "$progdir"`/tools/lib
-    libdir=`dirname "$progdir"`/tools/lib
-fi
-if [ ! -r "$frameworkdir/$jarfile" ]
 then
     frameworkdir=`dirname "$progdir"`/framework
-    libdir=`dirname "$progdir"`/lib
+    libdir=`dirname "$progdir"`/lib64
 fi
 if [ ! -r "$frameworkdir/$jarfile" ]
 then
@@ -68,14 +63,5 @@ else
     libpath="$frameworkdir/$lib"
 fi
 
-# Check if the host Java executable supports a 32-bit JVM. It needs to do because the JNI
-# library is 32-bit.
-${DICTTOOL_JAVA-java} -d32 -version > /dev/null 2>&1
-if [[ $? != 0 ]] ; then
-    echo Please specify a Java executable that supports a 32-bit JVM as DICTTOOL_JAVA.
-    exit 1
-fi
-
 # might need more memory, e.g. -Xmx128M
-exec ${DICTTOOL_JAVA-java} -d32 -ea -classpath "$libpath":"$jarpath" \
-    -Djava.library.path="$libdir" "$classname" "$@"
+exec java -ea -classpath "$libpath":"$jarpath" -Djava.library.path="$libdir" "$classname" "$@"