Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Open Source

 
Mahesh Pinnamaneni
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Where can i get the full source(or atleast partly) the source code of all the collections,utils etc packages in Java.
thanks & regards,
Mahesh P
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It comes as part of the JDK in a file called src.jar. I'm not sure if it's installed if you have just the JRE.
 
Stian Almaas
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my jdk1.5.0 it is called src.zip.
 
shank ram
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A question here ... is Java Open Source? Java is definitely not GPL, but still it is free to download,implement and develop ... so what exactly should one make out of it and what classification would it come under?
[ September 27, 2005: Message edited by: shank ram ]
 
Amol Fuke
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun has released certain JLS-java language specifications based on which you can also develop your version of java.Just as IBM did.IBM has its own version of java and virtual machine.Thats why it is called open source.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thats why it is called open source.

Don't confuse an open specification with an open-source implementation. Anybody can use the spec to implement Java, but to call it "Java", it needs to be certified by Sun, and license fees are involved. That has nothing to do with whether or not the implementation is open-source.

I don't think Java is open-source by any of the standard definitions or licenses. You're pretty restricted in what you can do with the source code, and parts of it (especially the native code and the tools) are not part of the JDK, although they are available under different licenses (which also are restrictive).
 
shank ram
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, put things in perspective ... would it be correct to say:

Java is an open specification and not open source.

Are there ABSOLUTELY NO attributes of open source that is applicable to Java?
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Are there ABSOLUTELY NO attributes of open source that is applicable to Java?


One. It has open source code.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15359
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are really interested, you can get the source code of the complete JDK from Sun. There's some info on the JDK 5.0 download page.

JDK 5.0 source code is available for researchers and others interested in exploring the details of the JDK.

See the links there for licensing information.
 
Mahesh Pinnamaneni
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks lot all of u.
I will download the JDK1.50 source from the given site and try to explore.
Bye n take care
Mahesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic