The error message is correct as there is not a standard java class named Text
locatable with the package designator "java.Text.*"
There is a standard java class named Text whose package designator is
"org.w3c.dom.Text"
That class is used in conjunction with xml documents.
If you are referring to another Text class that you have written or is in some
package you need to use, then its another problem.
Java has a pacakge called java.text
which has many useful classes.
If its one of these classes that you need, then use the impport statement:
import java.text.*;