Hello,
I tried to make an executable jar (a jar file that contains a main method, and once a user clicks on it from WinXP, it launches)...
The following code compiles correctly, but when I click on the jar file, nothing happens... Sorry if this post was supposed to be in a different forum other than the one for ant.
code:
<target name = "deploy" depends="compile" description = "Setting up deployment package.">
<echo>Preparing deployment package...</echo>
<echo/>
<mkdir dir = "${deploy.dir}" />
<jar jarfile="${deploy.dir}/HelloWorld.jar" basedir="${build.dir}">
<manifest>
<attribute name="Main-Class" value="hello.HelloWorld"/>
</manifest>
</jar>
<echo>HelloWorld jar successfully created.</echo>
</target>
Happy holidays and thanks,
Unnsse M. Khan
I tried to make an executable jar (a jar file that contains a main method, and once a user clicks on it from WinXP, it launches)...
The following code compiles correctly, but when I click on the jar file, nothing happens... Sorry if this post was supposed to be in a different forum other than the one for ant.
code:
<target name = "deploy" depends="compile" description = "Setting up deployment package.">
<echo>Preparing deployment package...</echo>
<echo/>
<mkdir dir = "${deploy.dir}" />
<jar jarfile="${deploy.dir}/HelloWorld.jar" basedir="${build.dir}">
<manifest>
<attribute name="Main-Class" value="hello.HelloWorld"/>
</manifest>
</jar>
<echo>HelloWorld jar successfully created.</echo>
</target>
Happy holidays and thanks,
Unnsse M. Khan