I am writing a gwt web application. I got "import java.beans cannot be
resolved" error message. Do I need to import any external JARs? If yes, pls
tell me which one?
Thanks
I've never tried it, but it looks possible:
<http://www.google.com/search?q=gwt+java.beans>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
I'm not sure, but I think "java.beans" is a package name, not a class.
Try the specific class name, or use a wildcard: "import java.beans.*;"
You don't import JARs, you import class names.
>> If yes, pls
"pls" isn't correct spelling.
>> tell me which one?
Mark Space wrote:
> I'm not sure, but I think "java.beans" is a package name, not a class.
30s with the API docs:
<http://java.sun.com/javase/6/docs/api/java/beans/package-summary.html>
> Try the specific class name, or use a wildcard: "import java.beans.*;"
java.** and javax.** don't need to be imported.
The OP needs to study the Java tutorial at java.sun.com.
<http://java.sun.com/docs/books/tutorial/index.html>
--
Lew
> In article <yeDDl.13940$qO1....@newsfe13.iad>, "a" <a...@mail.com> wrote:
>
> > I am writing a gwt web application. I got "import java.beans cannot
> > be resolved" error message. Do I need to import any external JARs? If
> > yes, pls tell me which one?
>
> I've never tried it, but it looks possible:
>
> <http://www.google.com/search?q=gwt+java.beans>
My feeling is that the actual line says "import java.beans;" in the OP's
code, which isn't allowed. He'd either have to specify java.beans.* to
allow use of any class from the package, or name a specific class in
that package (e.g., java.beans.PropertyChangeListener).
--
Steve W. Jackson
Montgomery, Alabama
Good point, as Lew and Mark Space also observed. Sadly, the OP was a
little vague. Because of the unfamiliar error, I assumed s/he was
stumbling over a limitation of GWT, which is addressed by projects such
as <http://www.screaming-penguin.com/GWTProjects>.