View Full Version : Java packages
Guest.Visitor
08-23-2001, 11:55 AM
Someone else answered this question over at News/400. The run-time classes are in a jar called rt.jar. The CLASSPATH needs to include the path to that jar file. Chris
jquinlan
08-24-2001, 03:54 AM
I am able to develop and compile java without having the rt.jar specified in my classpath. I don't know if this makes a difference but I have "SET JAVA HOME=C:JDK1.3 in my autoexec.bat My classpath includes C:JDK1.3BIN As a rule, I leave no spaces between the equal sign in my classpaths and I keep it all Upper Case. I don't know if this is required but I think I heard that somewhere. Also I add a ";.;" to the classpath to include whatever directory you're working in at the time. Jim Quinlan Clearwater, Florida
Guest.Visitor
08-24-2001, 03:57 AM
I recently installed the JDK v1.3.1 on my PC. It's my understanding that the Java compiler finds the API classes on a system using a combination of the CLASSPATH and IMPORT statements. For example, if my classpath is simply <font color="blue">CLASSPATH=C:JDK1.3.1</font> and I use an import statement of <font color="blue">import java.util.*</font> in a class, that the compiler would expect to find the package in the folder C:JDK1.3.1JavaUtil. I did a search and did not find any directories named JAVA or JAVAX or UTIL, etc. on my PC. What am I misunderstanding here? Are these packages instead in a JAR somewhere? Thanks. Chris Ringer
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.