Just thought of this - its late here and I'm hot and tired...
Actually did you try 'Run As > Ant Build...' and then setting the environment options? I've done that before and it worked.


Regards

Alan Chaney

Alan Chaney wrote:

Hi Murray

Looks like Eclipse has decided to use 1.4 instead of 5.0 when executing your build.xml. Maybe Ant is picking up the default compiler for your system, rather than the project specific one. I often find that Eclipse can get very confused (as they say in the UK "get its knickers in a twist") and you might find a project 'clean' and restarting Eclipse may be helpful. Or not! Good luck.

Regards

Alan Chaney



Murray Collingwood wrote:

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to