1. Create a temporary directory. Let's say "tmp"
> mkdir \tmp
> mkdir \tmp\out
> cd src
> dir /B /S /X *.java > jdk-src.txt
4. Compile sources
javac -verbose -g -J-Xmx512m -d jdk-class -cp "c:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar";"c:\Program Files\Java\jdk1.6.0\lib\tools.jar" @jdk-src.txt
5. Extract the original rt.jar in jdk home to tmp\rt
6. Copy all the files in \tmp\out to \tmp\rt
7. Create a rt.jar from \tmp\rt directory
8.
9.
> jar cvf rt.jar *
> mkdir \tmp
> mkdir \tmp\out
2. Extract src.zip in JDK installation directory to tmp\src
3. Use find utillity to get a list of all java files in tmp\src> cd src
> dir /B /S /X *.java > jdk-src.txt
4. Compile sources
javac -verbose -g -J-Xmx512m -d jdk-class -cp "c:\Program Files\Java\jdk1.6.0\jre\lib\rt.jar";"c:\Program Files\Java\jdk1.6.0\lib\tools.jar" @jdk-src.txt
5. Extract the original rt.jar in jdk home to tmp\rt
6. Copy all the files in \tmp\out to \tmp\rt
7. Create a rt.jar from \tmp\rt directory
8.
> cd \tmp\rt
9.
> jar cvf rt.jar *