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
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
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
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 CLASSPATH=C:JDK1.3.1 and I use an import statement of import java.util.* 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