Click to See Complete Forum and Search --> : JDK1.2.2


JohnnyT
June 17th, 2000, 01:17 PM
Finally (!!) I compiled my first Java program but the compiler can't find the java classes and as far as I know there is no classes.jar file in this version of JDK.My Classpath variable was set:
SET CLASSPATH = %CLASSPATH%;.
I made it point to JDK1.2.2\lib\ but couldnt find the classes either.Any suggestion?
Thanks once more

Ramprasad
June 17th, 2000, 07:35 PM
In jdk1.2.2 version U dont find classes.zip or classes.jar.
Make Ur classpath set to src.jar.
Do this

<which ever drive>:\jdk1.2.2\src.jar;%classpath%

Eugen SEER
June 18th, 2000, 08:53 AM
No, no, no, src.jar just contains the source code. The file containing the Java-Standard classes is jdk\jre\lib\rt.jar. If you set the classpath, then let it point to this file and to the current dir ("."). But normally it should not be necessary to set the classpath in JDK 1.2, because it should find it automatically.