Hassam Abdelillah :
I am curious about the whole process behind the public static void main(args[])
launching in a Java class.
If some one could points me to some classes involved in the JDK code source ?
I want to know about the process in details.
I don't know where to start !
jannis :
I believe here the main
method is called (execution of CallJavaMainInNewThread
method): src/java.base/share/native/libjli/java.c Line 2361
CallJavaMainInNewThread
declaration:
src/java.base/share/native/libjli/java.h Line 161
CallJavaMainInNewThread
implementations for particular platforms:
- Nix: src/java.base/unix/native/libjli/java_md_solinux.c Line 741
- MacOs: src/java.base/macosx/native/libjli/java_md_macosx.m Line 739
- Windows: src/java.base/windows/native/libjli/java_md.c Line 719
OpenJDK source code repository: https://github.com/openjdk/jdk/
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=415868&siteId=1