Hi, I need to use one of the methods that are in the class ccl.util.Util.
In the javadoc I can see the class cc.util.Util is inherit from java.lang.Object however when I call the method the compiler give me error message, "the class was not found in the declaration"
I import the java.lang.* and the error still occurs.
The method that I am trying to use is : stringToDate(java.lang.String sDate_) to convert String to a Date object to insert it in DB.
Please help me!! I need to insert a Date object into DB but I just have the String value (03/03/2002) Thanks in advance Liz
I forgot to add that the class cc.util.Util must be in your CLASSPATH. The compiler needs to know where to go find that class. you can also prepend the extra classpath to that class when you compile with the -classpath option as follows: javac -classpath %CLASSPATH%;.;pathtoclass yourclassfile.java
The little dot or period will have the compiler look in your current directory.
%CLASSPATH% tells the javac executable to substitute the current sting value of the environment CLASSPATH.
pathtoclass is the file path to the cc.util.Util class whereever that is on yur hard drive.
The class cc.util.Util is part of the JDK1.3.1. I did not created, I just want to used. How I can found where is the class cc.util.Util in my hard Drive?
The classPath has the directories where the JDK should find the classes. Do I have to download something else where this class is contained?