Classpath of JAVA

Hello,
ABC question as I could not get a direct answer: How to locate the default IO class of JAVA? My question was triggered by the row in most java program

import java.io.*

as I am very curious where the io class is located in my Mint14 (Ubuntu12.10). I am aware it is similar to use DBI in PERL, or #include <stream> in C++, where I could locate the packages/libraries in certain directories:

/usr/lib/perl5/DBI.pm
/usr/include/c++/4.7/iostream

but I could not locate any file name (io.class, or io.jre) for this io class in java? Have checked my system for the libraries:

/usr/lib/jvm/java-7-openjdk-amd64/lib/
/usr/lib/jvm/java-7-openjdk-common/jre/lib/
/home/kevin/downloadsoftware/jre1.7.0_10/lib/
/usr/lib/eclipse/plugins/

Also checked Oracle website, where there is:

package java.io

but I could not find this file in my system, and the java program works fine. Can anybody give me some explanantion about the "default IO, file, string, date & time, etc classes" of java1.7.x when it was installed. My java is:

$java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

Thanks a lot!

You can find package java.io inside lib/rt.jar

rt.jar contains all of the compiled class files for the base Java Runtime environment.

1 Like