Hi, managed to fix this on my own.

In Eclipse there is a setting in Windows | Preferences... under Java |
Compiler indicating the compiler compliance level, mine was set to 1.4 and
is now changed to 5.0 - this seems to have resolved the problem with the
"@Persist".

I then right mouse on the project's "build.xml" and run this.

The output from my build creates further errors:


Buildfile: *C:\TapestryTutorial\directlink\build.xml

compile*:

[*mkdir*] Created dir: C:\TapestryTutorial\directlink\target\classes

[*javac*] Compiling 1 source file to
C:\TapestryTutorial\directlink\target\classes

[*javac*] *
C:\TapestryTutorial\directlink\src\java\tutorials\directlink\pages\Home.java
*:8: illegal character: \64

[*javac*] @Persist

[*javac*] ^

[*javac*] *
C:\TapestryTutorial\directlink\src\java\tutorials\directlink\pages\Home.java
*:9: <identifier> expected

[*javac*] public abstract int getCounter();

[*javac*] ^

[*javac*] 2 errors

BUILD FAILED
It looks as though my ant build isn't picking up the annotations. (I haven't
used annotations before so I'm not sure what to do apart from check the
compiler compliance for the build....how do I do that?)

Anybody....hhheeeellllllppppp...

Cheers
mc

--
Murray Collingwood
Focus Computing
p +61 415 24 26 24
http://www.focus-computing.com.au

Reply via email to