Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java lang

 
palkiwala patil
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where in the java tool kit we find java lang class file
 
Vicken Karaoghlanian
Ranch Hand
Posts: 522
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang is not a class file, it is a package. All the classes in this package are implicitly imported by the compiler to every source file you write.
You can search the java api doc here for more information about the java.lang package.
 
palkiwala patil
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i ment when the tools jar file is unpacked where do we find the classes of java.lang package ..like String.class
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically, the J2SE classes are all jarred up in a file named "rt.jar".
 
Marilyn de Queiroz
Sheriff
Posts: 9067
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to look at the source, unjarring/unzipping the rt.jar file won't do you much good, since it is full of *.class files.

I suggest that you unjar/unzip the JAVA_HOME\src.zip into the JAVA_HOME directory. Then you will be able to find the classes inside the java\lang\ subdir.

Otherwise, if you want to have local javadoc documentation, you need to download that separately from http://java.sun.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic