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

J9 and Swing

0 views
Skip to first unread message

Daniel Hauser

unread,
Mar 25, 2003, 5:02:13 AM3/25/03
to
Hi all
Does anybody know if Swing is running on J9?

Thanks for any hints

Daniel


David Whiteman

unread,
Mar 25, 2003, 8:38:04 AM3/25/03
to
"Daniel Hauser" <hau...@swissinfo.org> wrote in message
news:b5p9b8$1ais$1...@news.boulder.ibm.com...

> Hi all
> Does anybody know if Swing is running on J9?
>
> Thanks for any hints

The AWT available for J9 (Personal Configuration and Personal Profile) is
roughly at a JDK 1.1.x level. Therefore, the current Swing will not run on
J9, since it requires a lot of stuff from Java 2. However, we've been able
to get some things running using Swing 1.1.1, although it doesn't work
perfectly.

David


Daniel Hauser

unread,
Mar 25, 2003, 9:12:03 AM3/25/03
to
Hi David

"David Whiteman" <bo...@us.ibm.com> wrote in message
news:b5pm0k$1td6$1...@news.boulder.ibm.com...

We have our applictions with PJava 3.0.1 and Swing 1.1.1 running. The
PJava-implementation is JDK 1.1.x based too.

We did some test with J9 and swing 1.1.1 but we got
java.lang.NoSuchMethodError:
java/awt/Component.getPeer()Ljava/awt/peer/ComponentPeer;

Can you describe what you did to be able to get some things running with
swing 1.1.1?

Thank you

Daniel


David Whiteman

unread,
Mar 25, 2003, 10:41:49 AM3/25/03
to
"Daniel Hauser" <hau...@swissinfo.org> wrote in message
news:b5pnvm$3ml4$1...@news.boulder.ibm.com...

> We have our applictions with PJava 3.0.1 and Swing 1.1.1 running. The
> PJava-implementation is JDK 1.1.x based too.
>
> We did some test with J9 and swing 1.1.1 but we got
> java.lang.NoSuchMethodError:
> java/awt/Component.getPeer()Ljava/awt/peer/ComponentPeer;
>
> Can you describe what you did to be able to get some things running with
> swing 1.1.1?

You are probably using J2ME Personal Profile (jclPPro). Component.getPeer()
is not part of the Personal Profile spec. You should instead download WCE
Personal Configuration, which is very similar to PJava. Personal
Configuration requires WCE Max class libraries.

Hope this helps,
David


0 new messages