Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sun.rmi.transport.tcp.TCPTransport source code

 
Jiafan Zhou
Ranch Hand
Posts: 193
Fedora Linux Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the subject indicates, where can I find the source code of sun.rmi.transport.tcp.TCPTransport and its related package? It is part of the rt.jar

Thanks
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't. The packages that start with sun, sunw and com.sun are Sun's own, proprietary classes. You could try to decompile the class but you may break the law doing that.
 
Jiafan Zhou
Ranch Hand
Posts: 193
Fedora Linux Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually just a few minutes ago, I found the source code of the package sun.xxx at the following link.

http://java.sun.com/j2se/jrl_download.html

To be more specific, if you download the zip file and unzip to a directory, sun.rmi.transport.tcp.TCPTransport is located at:
j2se/src/share/classes/sun/rmi/transport/tcp/TCPTransport.java

Thanks
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well blow me down. I never knew Sun released those. Perhaps you can also find the source for Java 6?
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:Perhaps you can also find the source for Java 6?


You can get that from the Java SE download page. Just scroll down to the additional resources section.
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic