简体   繁体   中英

Create GWT jar from a JSNI class

I'm trying to convert a Java NativeClass (where I'm using JSNI) to a library that I'll use in Client Side. In the NativeClass I'm declaring just native methods with my JSNI source code.I'm looking for a way make it as library.jar

Here's the response:

  1. Create a new GWT Module with a *.gwt.xml descriptor file in root.
  2. Put the NativeClass in client package inside your module.
  3. Generate your Jar using your module be sure to include your source code. GWT will need this source to generate the client JS.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM