Hi Hunter,
You're likely running into more than one problem here.

Firstly, when looking to reuse external libraries in your GWT project, you
must make sure that the library is cross-compilable to JavaScript and is
supported by the GWT Emulated JRE, or ensure that the library is only
intended to be used in server-side code.

The library that you're using here is likely not translatable source code,
and so you will need to look at keeping and using that code uniquely on the
server-side. If the code you're reusing is actually cross-compilable, then
you can reuse it by both adding the JAR to your project classpath and
inheriting the module in your own GWT module, via the <inherits> tag (see
GWT module documentation linked below).

If you are only using the library on the server-side and you're using the
embedded Jetty server in hosted mode, you may need to add the JXL jar to the
hosted mode launch configuration.

GWT module inheritance:
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideInheritingModules

Hope that helps,
-Sumit Chandel

On Mon, Sep 7, 2009 at 1:01 AM, hunter <[email protected]> wrote:

>
> Hi...
>      I am using gwt and eclipse to build my application.In that I
> need to use jxl.jar files to access the data that is present in a
> microsoft excel sheet.
>      My question is : Is it enough if we just add the .jar by right
> click->build path->configure build path->libraries->add external jars.
> or do we need to manipulate any other thing.
>      The problem what I am facing is : I have tried to add the jar
> file as mentioned above and written the code,it is executing but when
> i open the developed application in the google web tool kit browser it
> is throwing an error "import jxl cannot be resolved"..
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to