A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
use of rt.jar
Joined: Aug 06, 2009
Sep 16, 2009 01:55:57
is it necessary to include any of the below jar files in the classpath
2.what is the use of these jar files???
Joined: Oct 13, 2005
Sep 16, 2009 02:06:27
No. Unless you use a very old JVM, it will automatically search those .jars.
API classes are (I think) inside rt.jar. On my machine dt.jat appears to contain all the Swing class files. You will have difficulty running anything without rt.jar!
Joined: Mar 22, 2005
Sep 16, 2009 02:08:07
No, it's not necessary. They contain code that's used by the various tools (java, javac, javadoc, jar, ...) and other stuff used internally by the JVM. But the JVM knows how and where to find these jar files, so you don't need to worry about them.
I agree. Here's the link:
subject: use of rt.jar
Where is java.lang package??
How to run a java file with any one JRE version when two JRE's are available.
How to create a jar file of a java project that uses Derby database
Doubt in Hibernate Sample Application
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014