2009-10-27 13:42:06 UTC
I can't even get hello world to work. Can anybody shed any light on my problem?
<pre>
<b>steveo@steveo</b>:~/hello$ ls -lah which ant
lrwxrwxrwx 1 root root 20 2009-07-25 08:30 /usr/bin/ant -> ../share/ant/bin/ant
steveo@steveo:~/hello$ ls -lah /usr/share/ant/lib/GenJar.jar
-rw-r--r-- 1 root root 32K 2009-10-26 13:24 /usr/share/ant/lib/GenJar.jar
<b>steveo@steveo</b>:~/hello$ cat Hello.java
public class Hello {
public static void main(String[] args){
System.out.println("Hello World");
}
}
<b>steveo@steveo</b>:~/hello$ javac Hello.java
<b>steveo@steveo</b>:~/hello$ java Hello
Hello World
<b>steveo@steveo</b>:~/hello$ ls
build.xml Hello.class Hello.java
<b>steveo@steveo</b>:~/hello$ cat build.xml
<?xml version="1.0"?>
<project name="HelloWorld">
<taskdef resource="genjar.properties"/>
<genjar jarfile="hello.jar">
<class name="Hello"/>
</genjar>
</project>
<b>steveo@steveo</b>:~/hello$ ant
Buildfile: build.xml
[genjar] Generating jar: /home/steveo/hello/hello.jar
BUILD FAILED
/home/steveo/hello/build.xml:4: Unable to resolve: Hello.class
Total time: 0 seconds
</pre>