Hi Victor
I'm a longtime Eclipse user, so I'm not very Netbeans savvy. However I
managed to setup a working GwtAI project in Netbeans.
1. I used the Netbeans GWT plugin to create a new Java Web project. In
the 'New project' wizard I have add GWT as a framework.
2. I created a folder 'lib' and placed the GwtAI Jar files in there.
3. Netbeans does create a 'build.xml' file which can be customized. In
this file I have added the following target:
---
<?xml version="1.0" encoding="UTF-8"?>
<project name="InitApplet" default="default" basedir=".">
<import file="nbproject/build-gwt.xml"/>
<import file="nbproject/build-impl.xml"/>
<target name="-post-compile">
<echo level="info">Preparing applet JAR files</echo>
<jar destfile="${build.web.dir}/${
ant.project.name}.jar"
compress="true">
<fileset dir="${build.classes.dir}">
<include name="**/*.class" />
</fileset>
<manifest>
<attribute name="Built-By" value="${
user.name}"/>
<attribute name="Implementation-Vendor" value="$
{
ant.project.name}"/>
<attribute name="Implementation-Title" value="$
{
ant.project.name}"/>
<attribute name="Implementation-Version" value="1.0"/>
</manifest>
</jar>
<copy file="${file.reference.GwtAI-Core.jar}" tofile="$
{build.web.dir}/GwtAI-Core.jar" />
<signjar jar="${build.web.dir}/${
ant.project.name}.jar" alias="Adrian
Buerki" storepass="gwtaigwtai" keystore=".keystore" />
<signjar jar="${build.web.dir}/GwtAI-Core.jar" alias="Adrian Buerki"
storepass="gwtaigwtai" keystore=".keystore" />
</target>
</project>
---
4. Run your project, the browser comes up... And there you go :-)
Make sure you get the Jar signing stuff right. Otherwise you will get
a signing error from the Java plugin in the browser. Have a look at
the 'signjar' task in the above build. Jar signing can also be done
with command line tools (these tools are included in the JDK). See the
the official Oracle Tutorials to do so:
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html
Hope that helps.
Regards, Adrian
On 14 Aug., 13:17, victor QIN <
bienvenue...@gmail.com> wrote:
> 2010/8/13 kilkenny <
a.bue...@gmail.com>
> >
gwtai+un...@googlegroups.com <
gwtai%2Bunsu...@googlegroups.com>.