首页 > TAG信息列表 > jdk8u

java编译器源码下载

有很多同学想研究java编译器的源码,看反编译的class文件觉得不方便。 其实可以去管网直接下载源码,地址如下: http://hg.openjdk.java.net/jdk8u/jdk8u/langtools/ 点击左侧边栏的zip,下载完成后解压,将com.sun.*下面的代码放在IDE的源码路径 如果你用的是eclipse,可能是这样:   如果

jdk 源码

  https://github.com/openjdk-mirror/jdk/tree/jdk8u/jdk8u%2Fmaster                 选择下载的源码路径:  

javadoc源码获取

最近老项目要获取所有的接口和想象的接口描述(一个一个手动手机到excel里边倒是行,但是会话费大量时间,所以想通过javadoc来看看它是怎样获取注释及接口方法的,参考餐口) 请参考OpenJDK8u最新版的javadoc的实现: http://hg.openjdk.java.net/jdk8u/jdk8u/langtools/file/tip/src/share/c

《jdk8u源码分析》1.main函数

jdk8u源码下载 src/share/bin/main.c::main(int argc, char **argv) /* * Entry point. */ //根据变量JAVAW是否存在执行不同的代码块 #ifdef JAVAW //MFC窗体程序入口 char **__initenv; int WINAPI WinMain(HINSTANCE inst, HINSTANCE previnst, LPSTR cmdline, int cmdsh

《jdk8u源码分析》2.JLI_Launch

src/share/bin/java.c::JLI_Launch /* * Entry point. */ int JLI_Launch(int argc, char ** argv, /* main argc, argc */ int jargc, const char** jargv, /* java args */ int appclassc, const char** appclassv, /* app classp

《jdk8u源码分析》3.InitLauncher

src/windows/bin/java_md.c::InitLauncher void InitLauncher(boolean javaw) { INITCOMMONCONTROLSEX icx; /* * Required for javaw mode MessageBox output as well as for * HotSpot -XX:+ShowMessageBoxOnError in java mode, an empty * flag f

《jdk8u源码分析》4.DumpState

src/share/bin/java.c::DumpState static void DumpState() { if (!JLI_IsTraceLauncher()) return ; /** * Launcher state: * debug:on * javargs:off * program name:java * launcher name:java * javaw:off * fullversion:1.8

《jdk8u源码分析》5.SelectVersion

C Language Reference > Parsing C Command-Line Arguments src/share/bin/java.c::SelectVersion /* * The SelectVersion() routine ensures that an appropriate version of * the JRE is running. The specification for the appropriate version * is obtained fr

《jdk8u源码分析》5.2.JLI_ValidVersionString

src/share/bin/version_comp.c::JLI_ValidVersionString /* * Validates a version string by the extended JSR 56 grammar. */ int JLI_ValidVersionString(char *version_string) { char *vs; char *m1; char *end; if ((vers

《jdk8u源码分析》5.3.LocateJRE

src/windows/bin/java_md.c::LocateJRE /* * This is the global entry point. It examines the host for the optimal * JRE to be used by scanning a set of registry entries. This set of entries * is hardwired on Windows as "Software\JavaSoft\Java Runt

《jdk8u源码分析》5.4.ExecJRE

src/windows/bin/java_md.c::ExecJRE /* * Given a path to a jre to execute, this routine checks if this process * is indeed that jre. If not, it exec's that jre. * * We want to actually check the paths rather than just the version string * built

《jdk8u源码分析》6.CreateExecutionEnvironment

src/windows/bin/java_md.c::CreateExecutionEnvironment /* * */ void CreateExecutionEnvironment(int *pargc, char ***pargv, char *jrepath, jint so_jrepath, char *jvmpath, jint so_jvmpath,

《jdk8u源码分析》6.1.GetJREPath

src/windows/bin/java_md.c::GetJREPath /* * Find path to JRE based on .exe's location or registry settings. */ jboolean GetJREPath(char *path, jint pathsize) { char javadll[MAXPATHLEN]; struct stat s; //当前应用程序下存在jre,先加载应用程序下面的j