• Post Reply Bookmark Topic Watch Topic
  • New Topic

i can't find some more detailed source code ?  RSS feed

 
zhiqiang zhang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for instance : public static native void arraycopy(Object src, int srcPos,
Object dest, int destPos,
int length)
In the Jdk src.zip
there just a statement about this method , is it possible to find more detailed source code ? why or why not ?
I hope i have expressed my question correctly!
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Native methods are not implemented in Java but in some other language, usually C or C++. Usually they are compiled into a library file (.dll in Windows, lib.so in Unix / Linux), but in this case it's compiled into the JVM itself. You'll need to find and download the source code of the JVM itself. Fortunately, you can find that at http://www.oracle.com/technetwork/java/javase/downloads/index.html; scroll down to the "Java SE 6 JDK Source Code" section.
 
zhiqiang zhang
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:Native methods are not implemented in Java but in some other language, usually C or C++. Usually they are compiled into a library file (.dll in Windows, lib.so in Unix / Linux), but in this case it's compiled into the JVM itself. You'll need to find and download the source code of the JVM itself. Fortunately, you can find that at http://www.oracle.com/technetwork/java/javase/downloads/index.html; scroll down to the "Java SE 6 JDK Source Code" section.

i got it ;thank you very very much,also thank you in the last topic
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!