GWT Compiler is unable to find JDK package

80 views
Skip to first unread message

Setya

unread,
May 18, 2007, 6:28:37 AM5/18/07
to Google Web Toolkit
Hi all,

One of my classes imports java.text package, but when I invoke GWT
compiler it complains for being unable to resolve that package. Since
I didn't change anything in the classpath I don't know how to solve
this problem.

Any help would be greatly appreciated.


Best Regards,


Setya

Setya

unread,
May 18, 2007, 7:25:27 AM5/18/07
to Google Web Toolkit

Sorry, I forgot to mention that I have added GWTx library and the
compiler is supposed to find the emulated java.text, but it didn't.

Any ideas ?

Regards,

Setya

Steiner Dominik, (QX59311)

unread,
May 18, 2007, 7:32:38 AM5/18/07
to Google-We...@googlegroups.com
Hi Setya,

Why do you think that GWTx emulates the java.text package?

If you browse to their homepage you find

Currently emulated JRE classes include:

* java.io.Serializable
* java.beans.PropertyChangeSupport
* java.beans.PropertyChangeListener
* java.beans.PropertyChangeListenerProxy
* java.beans.PropertyChangeEvent
* java.beans.IndexedPropertyChangeEvent
* java.util.EventListenerProxy
* java.util.StringTokenizer
* java.util.logging.*

So there is no java.text.* emulation so far. :) (neither in GWT itself)

HTH

Dominik

-----Ursprüngliche Nachricht-----
Von: Google-We...@googlegroups.com [mailto:Google-We...@googlegroups.com] Im Auftrag von Setya
Gesendet: Freitag, 18. Mai 2007 13:25
An: Google Web Toolkit
Betreff: Re: GWT Compiler is unable to find JDK package

Setya

unread,
May 18, 2007, 7:40:18 AM5/18/07
to Google Web Toolkit
Hi,

> Why do you think that GWTx emulates the java.text package?
>
> If you browse to their homepage you find
>
> Currently emulated JRE classes include:
>
> * java.io.Serializable
> * java.beans.PropertyChangeSupport
> * java.beans.PropertyChangeListener
> * java.beans.PropertyChangeListenerProxy
> * java.beans.PropertyChangeEvent
> * java.beans.IndexedPropertyChangeEvent
> * java.util.EventListenerProxy
> * java.util.StringTokenizer
> * java.util.logging.*
>
> So there is no java.text.* emulation so far. :) (neither in GWT itself)

I downloaded GWTx-20070110.jar and found java.net & java.text.
packages.


Regards,

Setya

Steiner Dominik, (QX59311)

unread,
May 18, 2007, 7:51:04 AM5/18/07
to Google-We...@googlegroups.com
Hi Setya,

Ok, nice hint, hadn't seen that GWTx now ships with text.* package. But not sure if the documentation is just old, or the text.* package is not supported still.

If you look into Java.gwt.xml file of GWTx it says

<module>
<inherits name="com.googlecode.gwtx.java.Beans"/>
<inherits name="com.googlecode.gwtx.java.Io"/>
<inherits name="com.googlecode.gwtx.java.Util"/>
<inherits name="com.googlecode.gwtx.java.util.Logging"/>
</module>

So there is no inherits of the text package in the main module file. Perhaps Sandy can shed some light on this, if the text folder is already supported or not.

Dominik


-----Ursprüngliche Nachricht-----
Von: Google-We...@googlegroups.com [mailto:Google-We...@googlegroups.com] Im Auftrag von Setya

Gesendet: Freitag, 18. Mai 2007 13:40


An: Google Web Toolkit
Betreff: Re: GWT Compiler is unable to find JDK package

Ian Petersen

unread,
May 18, 2007, 8:53:02 AM5/18/07
to Google-We...@googlegroups.com
On 5/18/07, Steiner Dominik, (QX59311)

<Dominik...@partner.bmw-motorsport.com> wrote:
> So there is no inherits of the text package in the main module file. Perhaps Sandy can
> shed some light on this, if the text folder is already supported or not.

I'm not Sandy (or Spartacus), but I did play with his GWTx code. If I
understand correctly, Sandy has ported some of the Apache Harmony
project to GWT. It looks to me like he hasn't finished porting the
java.text.* pieces. (I actually think the .jar that's available for
download might include java.text by accident 'cause there's no
java.text-related stuff in his public SVN repository.)

Anyway, GWT 1.4 is going to have its own implementation of several of
the NumberFormat classes, so, if you can wait, you should probably use
them.

I actually spent the time porting java.text.NumberFormat from the
Harmony project (actually from IBM's ICU4J project--Harmony just
delegates to it). I'm not yet convinced it was worth the two weeks of
work....

Ian

--
Tired of pop-ups, security holes, and spyware?
Try Firefox: http://www.getfirefox.com

Setya

unread,
May 19, 2007, 3:42:49 AM5/19/07
to Google Web Toolkit
Hi,

On May 18, 7:53 pm, "Ian Petersen" <ispet...@gmail.com> wrote:
> On 5/18/07, Steiner Dominik, (QX59311)
>

> <Dominik.Stei...@partner.bmw-motorsport.com> wrote:
> > So there is no inherits of the text package in the main module file. Perhaps Sandy can
> > shed some light on this, if the text folder is already supported or not.
>
> I'm not Sandy (or Spartacus), but I did play with his GWTx code. If I
> understand correctly, Sandy has ported some of the Apache Harmony
> project to GWT. It looks to me like he hasn't finished porting the
> java.text.* pieces. (I actually think the .jar that's available for
> download might include java.text by accident 'cause there's no
> java.text-related stuff in his public SVN repository.)
>
> Anyway, GWT 1.4 is going to have its own implementation of several of
> the NumberFormat classes, so, if you can wait, you should probably use
> them.
>
> I actually spent the time porting java.text.NumberFormat from the
> Harmony project (actually from IBM's ICU4J project--Harmony just
> delegates to it). I'm not yet convinced it was worth the two weeks of
> work....

Actually all I need is GWTx's SimpleDateFormat implementation, I tried
SimpleDateFormat implementation from gwt-widgets but I found a bug (I
think) that makes me stop from using it.

Will GWT 1.4 contain SimpleDateFormat and Calendar implementation ?
When is it going to be released ?


Regards,


Setya

Reinier Zwitserloot

unread,
May 19, 2007, 11:18:39 AM5/19/07
to Google Web Toolkit
I don't think GWT 1.4 has SDF or Calendars, but you'd have to check to
be sure.

It will be released Real Soon Now.

Reply all
Reply to author
Forward
0 new messages