diff --git a/langtools/make/build.xml b/langtools/make/build.xml
index ee0c3281c49..e96ec89a819 100644
--- a/langtools/make/build.xml
+++ b/langtools/make/build.xml
@@ -83,6 +83,17 @@
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -30,7 +30,7 @@
-
+
@@ -50,7 +50,7 @@
-
+
@@ -70,7 +70,7 @@
-
+
@@ -90,7 +90,7 @@
-
+
@@ -111,7 +111,7 @@
-
+
diff --git a/langtools/make/launcher.sh-template b/langtools/make/launcher.sh-template
index 728d6bce0ba..4a2e37c409a 100644
--- a/langtools/make/launcher.sh-template
+++ b/langtools/make/launcher.sh-template
@@ -25,17 +25,6 @@
# questions.
#
-mydir="`dirname $0`"
-case `uname -s` in
- CYGWIN*)
- mydir=`cygpath -m $mydir`
- ;;
-esac
-mylib="$mydir/../modules"
-
-# patch langtools modules
-bcp=-Xpatch:"$mylib"
-
# tools currently assumes that assertions are enabled in the launcher
ea=-ea:com.sun.tools...
@@ -59,4 +48,4 @@ done
unset DUALCASE
IFS=$nl
-"#TARGET_JAVA#" $bcp ${ea} ${javaOpts} #PROGRAM# ${toolOpts}
+"#TARGET_JAVA#" "#XPATCH#" ${ea} ${javaOpts} #PROGRAM# ${toolOpts}