Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

import java.beans cannot be resolved

954 views
Skip to first unread message

a

unread,
Apr 10, 2009, 4:15:26 AM4/10/09
to
Hi,

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


John B. Matthews

unread,
Apr 10, 2009, 7:42:46 AM4/10/09
to

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>

Mark Space

unread,
Apr 10, 2009, 8:34:56 AM4/10/09
to


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.*;"

Lew

unread,
Apr 10, 2009, 9:17:56 AM4/10/09
to
a 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?

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

Steve W. Jackson

unread,
Apr 10, 2009, 10:29:02 AM4/10/09
to
In article <nospam-B7AC54....@news.aioe.org>,

"John B. Matthews" <nos...@nospam.invalid> wrote:

> 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

John B. Matthews

unread,
Apr 10, 2009, 2:09:07 PM4/10/09
to
In article <stevewjackson-683...@news.individual.net>,

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>.

0 new messages