debug 到JDK的代码时,有时看不到一些调试信息,例如行号,局部变量的值等,为了排查问题,当然希望能知道这些调试信息了,故找了下带调试信息的jdk版本叫fastdebug。
首先给出下载链接,这里只找到JDK6的,没有JDK7的
http://download.java.net/jdk6/6u25/promoted/b03/index.html
windows 版本
http://www.java.net/download/jdk6/6u25/promoted/b03/binaries/jdk-6u25-ea-bin-b03-windows-i586-debug-27_feb_2011.jar
windows X64 版本
http://www.java.net/download/jdk6/6u25/promoted/b03/binaries/jdk-6u25-ea-bin-b03-windows-amd64-debug-27_feb_2011.jar
linux 版本
http://www.java.net/download/jdk6/6u25/promoted/b03/binaries/jdk-6u25-ea-bin-b03-linux-i586-debug-27_feb_2011.jar
linux X64 版本
http://www.java.net/download/jdk6/6u25/promoted/b03/binaries/jdk-6u25-ea-bin-b03-linux-amd64-debug-27_feb_2011.jar
下载了双击或者java -jar都可。
调试有源码那也是很幸福的事情,这里提供openjdk的源码下载地址
openjdk6 http://download.java.net/openjdk/jdk6/
http://download.java.net/openjdk/jdk6/promoted/b24/openjdk-6-src-b24-14_nov_2011.tar.gz
早期的jdk6 http://download.java.net/jdk6/source/
总的下载链接 :http://download.java.net/jdk6/6u10/archive/
安装jar包形式的下载链接
http://www.java.net/download/jdk6/6u23/promoted/b05/jdk-6u23-fcs-src-b05-jrl-12_nov_2010.jar
openjdk7 http://download.java.net/openjdk/jdk7/
http://www.java.net/download/openjdk/jdk7/promoted/b147/openjdk-7-fcs-src-b147-27_jun_2011.zip
下载后将\j2se\src\share\classes这个目录设置为rt.jar的source目录即可。
参考: