G'Day all,
Please forgive the seemingly simple question, but i have run into a brick wall over this. I have RTFM, RTFT and STFW & I am stuck.
I am doing a simple Hellowrld app, within a package. Now I can get it to comile without issue with
Ant, I can even create a .jar file, but I cannot get it to run.
When I "java -jar HelloWorld.jar", I get the following error.
Exception in
thread "main" java.util.zip.ZipException: The system cannot find the file specified
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.jar.JarFile.<init>(JarFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:65)
The build.xml file looks like this
<?xml version="1.0" encoding="UTF-8"?>
<project name="Helloworld" default="makejar" basedir=".">
<target name="compile">
<javac srcdir="."/>
</target>
<target name="makejar" depends="compile"
description="Create a jar for the Helloworld project">
<jar jarfile="HelloWorld.jar" includes="**/*.class" basedir="."/>
</target>
</project>
Have I missed anything? If so, what? And are there any useful for newbie documentation floating around anywhere?
Thanking you in advance for your help,
Craig.