Visit Our UNIX and Linux User Community

Classpath of JAVA

Thread Tools Search this Thread
Top Forums Programming Classpath of JAVA
# 1  
Old 01-11-2013
Classpath of JAVA

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

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:

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:

Also checked Oracle website, where there is:

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!
# 2  
Old 01-11-2013
You can find package inside lib/rt.jar

rt.jar contains all of the compiled class files for the base Java Runtime environment.
This User Gave Thanks to Yoda For This Post:

Previous Thread | Next Thread
Test Your Knowledge in Computers #80
Difficulty: Easy
Many operating systems today, including Android, Chrome OS, Steam OS, and myriad embedded systems for devices, are based on Linux.
True or False?

10 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Java doesnīt find the CLASSPATH (System variable)

1. The problem statement, all variables and given/known data: As a excercise I have to compile a program ( with a class file ( in another directory. (As you seen in the screenshot) Iīm setting a PATH and a CLASSPATH (system variables). Itīs working without a... (2 Replies)
Discussion started by: MenschTown
2 Replies

2. Red Hat

Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-la

Have no idea on what the below error message is: Process not running: /opt/java15/jdk/bin/java -classpath /opt/apache/apache-ant-1.7.0-mod/lib/ant-launcher.jar -buildfile build.xml dist. Any help? (3 Replies)
Discussion started by: gull05
3 Replies

3. UNIX for Advanced & Expert Users

Fedora java classpath

What is the proper way to set your java classpath? (0 Replies)
Discussion started by: cokedude
0 Replies

4. Shell Programming and Scripting

How to override Classpath?

Hi, When I login to my HP-UX and fire the "set" command I see that the weblogic 9.2 classpath is already set. However, I wish to override the classpath to weblogic version 10.3 I have a script call that has the desired classpath. Thus, in my unix script i write .... (6 Replies)
Discussion started by: mohtashims
6 Replies

5. Ubuntu

Trouble setting up Java classpath

Saw an error while setting up an application called i2phex: # ./ java.lang.RuntimeException: Failed to initialize at phex.common.ManagerController.initializeManagers( at phex.Main.main( (0 Replies)
Discussion started by: Israel213
0 Replies

6. Web Development

Servlet CLASSPATH for Apache

Hi All, I'm trying to play around with Java Servlets. I have a apache web server running on Solaris. And I'm trying to understand which file I add the JAVA CLASSPATH too so that when apache starts up it will have access to mysql interface libraries etc. Could some one please tell me? ... (0 Replies)
Discussion started by: fishman2001
0 Replies

7. Programming

regarding classpath java

Hi, I have a below command.... $JAVA_HOME/bin/java -cp "/usr/orabase/product/10.2.0/lib:/usr/java/javajar/common/sched.jar:/usr/orabase/product/10.2.0/jdbc/lib/ojdbc14_g.jar:/usr/orabase/product/10.2.0/jdbc/lib/classes12.jar" I want to know where the Smart.class is... (1 Reply)
Discussion started by: PRKS
1 Replies

8. Programming


This question is realted to UNIX and Java. I sing in to a UNIX server and I want to change my CLASSPATH locally, so it won't affect any other users CLASSPATHS. Is the command 'export PATH=...' the way to do it? Thanks. (4 Replies)
Discussion started by: Rachel Ross
4 Replies

9. UNIX for Dummies Questions & Answers


This question is realted to UNIX and Java. I sing in to a UNIX server and I want to change my CLASSPATH locally, so it won't affect any other users CLASSPATHS. Is the command 'export PATH=...' the way to do it? Thanks. Duplicate post (0 Replies)
Discussion started by: Rachel Ross
0 Replies

10. Programming

exit status running java classpath in unix shell

I have a java classpath running inside of a unix shell script. During my testing it will error with lines that show an example like this below. error at Method) at<init>(, ... (2 Replies)
Discussion started by: mmcds
2 Replies

Featured Tech Videos