> it return error like this
> Generated servlet error: [javac] Compiling 1 source file 
>
/java/share/jakarta-tomcat-4.1.10/work/Standalone/localhost/absent/AllAbsCrd
StaCurYS_jsp.java:12: 
> '.' expected import Bank; 
> I don't have problem with class  in pacakage but I dont' have source code
of Bank.class
> I should config something for import that class?

Did you by any chance move to JDK1.4 recently?  You cannot import a class in
the default package (no package statement) into a class that *does* have a
package statement.  As you noted, you don't have any problems with classes
that are in packages.  (With JDK 1.3, the compiler did not complain.)

The message "'.' expected" is telling you that the compiler wants to see
something like import com.acme.project.Bank;  An import statement with no
'dot' is illegal.

If you don't have the source code for Bank.class, then you're in a bit of a
quandary... short of decompiling it, adding the package statement and
recompiling, I'm not quite sure if there's a fix.

-- 
Wendy Smoak
Arizona State University PA IRM 

Reply via email to