wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Import statement problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Import statement problems" Watch "Import statement problems" New topic

Import statement problems

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
Hi Guys
I am trying to compile my action class and it keeps giving me this error:

Here is the code:

shaf maff
Ranch Hand

Joined: Sep 07, 2008
Posts: 180
I have fixed it. I simply need to add each bean in its own line (i.e. bean.bean1; bean.bean2;) etc
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 36499
An import statement must have a package name in. import package_name.ClassName; or import package_name.*; or import static package_name.ClassName.*; or import static package_name.ClassName.member;
It is sorta covered in the JavaRanch Style Guide.
subject: Import statement problems
Similar Threads
Type Conversion Problem
Version problem with com.opensymphony.xwork2 49
java.lang.NoSuchMethodError: com.opensymphony.xwork2.ActionContext.get(Ljava/lang/Object;)Ljava/lang
JavaBean not instantiating
java.lang.ClassNotFoundException: javax.ejb.EJBHome