The java code in org.waveprotocol.wave.model.* gets compiled by GWT
into a javascript application.  All the code in that package must be
executable in a browser environment, so IO code is unlikely to be
compatible with that.

What parts of java.nio are you using?  There may be regular JDK
equivalents.  The core parts of the JDK libraries are usable in GWT.

-Dave

On Thu, Jan 6, 2011 at 7:19 PM, Juan Antonio Osorio <[email protected]> wrote:
> Hi, happy new year everyone :).
>
> I've been trying to import java.nio into
> src/org/waveprotocol/wave/model/document/operation/Nindo.java but when doing
> the ant command it doesn't let me. I want to test if the encoding problems
> (with non ascii characters like accute accents) could be fixed there, when
> compiling it gives me the following:
>
> compile-gwt:
>     [java] Compiling module org.waveprotocol.box.webclient.WebClientProd
>     [java]    Validating newly compiled units
>     [java]       [ERROR] Errors in
> 'file:/home/ozz/wave-development/src/org/waveprotocol/wave/model/document/operation/Nindo.java'
>     [java]          [ERROR] Line 24: The import java.nio cannot be resolved
>     [java]          [ERROR] Line 25: The import java.nio cannot be resolved
>     [java]          [ERROR] Line 26: The import java.nio cannot be resolved
>     [java]          [ERROR] Line 27: The import java.nio cannot be resolved
>     [java]          [ERROR] Line 28: The import java.nio cannot be resolved
>     [java]          [ERROR] Line 29: The import java.nio cannot be resolved
>     [java]          [ERROR] Line 775: CharsetDecoder cannot be resolved to
> a type
>     [java]          [ERROR] Line 775: Charset cannot be resolved
>     [java]          [ERROR] Line 776: CodingErrorAction cannot be resolved
>     [java]          [ERROR] Line 777: CodingErrorAction cannot be resolved
>     [java]          [ERROR] Line 780: CharBuffer cannot be resolved to a
> type
>     [java]          [ERROR] Line 782: ByteBuffer cannot be resolved
>     [java]          [ERROR] Line 784: CharacterCodingException cannot be
> resolved to a type
>     [java]    Finding entry point classes
>     [java]       [ERROR] Unable to find type
> 'org.waveprotocol.box.webclient.client.WebClient'
>     [java]          [ERROR] Hint: Previous compiler errors may have made
> this type unavailable
>     [java]          [ERROR] Hint: Check the inheritance chain from your
> module; it may not be inheriting a required module or a module may not be
> adding its source path entries properly
>
> BUILD FAILED
>
> I don't know why it doesn't let me, perhaps I got confused with the code
> O_o.
>
> Thank you
>
> --
> Buen día,
>
> Juan Antonio Osorio R.
> e-mail: [email protected]
>
> "All truly great thoughts are conceived by walking."
> - F.N.
>

Reply via email to