Welcome to Dream.In.Code
Become a Java Expert!

Join 149,478 Java Programmers for FREE! Get instant access to thousands of Java experts, tutorials, code snippets, and more! There are 1,621 people online right now. Registration is fast and FREE... Join Now!




sun.* classes

 
Reply to this topicStart new topic

sun.* classes, where are the source files?

William_Wilson
17 May, 2007 - 01:55 PM
Post #1

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 4,101



Thanked: 25 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
Maybe this is a stupid question, but where does Sun, hide the source files, .class, or .java for it's sun.* imports? Particularly I am interested in the sun.Audio.AudioStream right now, but i'm hoping to explore the code extensively. As far as I can see they are not located within the src.zip file which contains all of the regular java and javax import .java files.

Anyone have any clue where these files just might be? because they have to be somewhere... At the very least perhaps there is an online version available? showing the method prototypes, and constructors at the very least.

Anyone with any ideas, please help me out smile.gif
User is offlineProfile CardPM
+Quote Post

keems21
RE: Sun.* Classes
17 May, 2007 - 08:56 PM
Post #2

D.I.C Head
Group Icon

Joined: 3 Feb, 2007
Posts: 183



Thanked: 2 times
Dream Kudos: 25
My Contributions
I've personally never heard of that package. I tried searching my hard drive and the internet, and I'm sorry to say that I got nothing.

I also tried creating a program that only imported that package and I kept getting errors saying that the package doesn't exist. Are you sure that that package isn't part of some opensource project or maybe part of whatever IDE you're using?
User is offlineProfile CardPM
+Quote Post

Jayman
RE: Sun.* Classes
17 May, 2007 - 09:27 PM
Post #3

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 7,302



Thanked: 66 times
Dream Kudos: 500
Expert In: Everything

My Contributions
After a little research I have found they are not included in the JDK. You need to download them from Sun's website.

http://www.sun.com/software/communitysourc...a2/download.xml

You need to download the (SCSL Source) file for JDK 5.0. You will need to register with the site in order to be able to download them, but it is free to register.

Once you download the zip you will find the AudioStream.java file inside the j2se/src/share/classes/sun/audio folder inside the ZIP file.

You may need to download the binaries, as well, if you plan on building applications. But I didn't check into that for sure. The link for the binaries is right under the SCSL Source link on that same page.
User is online!Profile CardPM
+Quote Post

William_Wilson
RE: Sun.* Classes
18 May, 2007 - 09:06 AM
Post #4

lost in compilation
Group Icon

Joined: 23 Dec, 2005
Posts: 4,101



Thanked: 25 times
Dream Kudos: 3275
Expert In: Java, C, Javascript

My Contributions
sweet, thanks jayman, i seem to already have them, as i was playing with the class i listed above as an import, but could not find the source files anywhere.
I know they are not standard, but they also use standardized functions, so by examining them, i am hoping to learn some things which I can implement on my own smile.gif
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/7/09 03:39PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Java Help!

Java Tutorials

Reference Sheets

Java Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month