You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Murray Collingwood <mu...@gmail.com> on 2006/06/02 06:00:33 UTC

Running the Tapestry Tutorial

Hi folks

Sorry, this is a real newby question - how do you run the Tapestry Tutorial
in Eclipse?

I have installed Eclipse 3.1 (C:\Eclipse) and downloaded the Tapestry
Tutorial zip.  I extracted the Tutorial files into a folder -
C:\TapestryTutorial

I found a file called "INFO.txt" and tried to follow the instructions here
but they didn't help me find anything to work with.

The contents of the Tapestry Tutorial zip look nothing like the directory
layouts described on the Tapestry Quickstart page.
http://jakarta.apache.org/tapestry/QuickStart/index.html#Pre-requisistes

I must be missing something basic - somebody please help.

Cheers
mc



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

Re: Running the Tapestry Tutorial

Posted by Murray Collingwood <mu...@gmail.com>.
Hi folks

I have updated the INFO.txt file that is downloaded with the
tapestry-tutorial - would somebody like to review and update this back into
the zip file, it may help somebody else following me...

Cheers
mc

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

Re: Running the Tapestry Tutorial

Posted by Murray Collingwood <mu...@gmail.com>.
Brilliant!

I looked through the 'Ant Build...' dialog and found there was a 'tools.jar'
file being referenced from a v1.4 installation on my computer.  There was no
'tools.jar' in my 5.0 library...hmmm?  I went hunting on my machine (good on
Google Desktop) and found a tools.jar v5.0 in my "Program Files" directory,
copied all of the libs from this area into my v5.0 j2se library and it now
compiles perfectly.

Now I can start the tutorial properly...

Cheers
mc



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

Re: Running the Tapestry Tutorial

Posted by Alan Chaney <al...@compulsivecreative.com>.
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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Running the Tapestry Tutorial

Posted by Alan Chaney <al...@compulsivecreative.com>.
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Running the Tapestry Tutorial

Posted by Murray Collingwood <mu...@gmail.com>.
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

Re: Running the Tapestry Tutorial

Posted by Murray Collingwood <mu...@gmail.com>.
Thanks Jesse - I have now been able to load the tutorials.  I found the best
method was to extract the downloads to some location (not my workspace) and
then within Eclipse do the Windows | Preference setting to identify the
Tapestry Libraries, followed by File | Import an existing project, browse to
the place I extract the downloads and they should all appear in the
selection dialog.

I'm having one more problem...
"Syntax error, annotations are only available if source level is 5.0"

The line being referenced is in Home.java and reads...
"    @Persist"

I have loaded J2SE 1.5.0_07 yet still this problem remains.  Is there
something I've forgotten or missed????

Cheers
mc


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

Re: Running the Tapestry Tutorial

Posted by Jesse Kuhnert <jk...@gmail.com>.
No idea what the tutorial stuff is showing, but I do know if you check out
either tacos (http://tacos.sourceforge.net ) or the current tapestry4 trunk
version (trunk from either project) you will find eclipse shared run
configurations for the tacos demo or the upcoming (unreleased / documented)
tapestry4.1 tutorial application.

On 6/2/06, Murray Collingwood <mu...@gmail.com> wrote:
>
> Hi folks
>
> Sorry, this is a real newby question - how do you run the Tapestry
> Tutorial
> in Eclipse?
>
> I have installed Eclipse 3.1 (C:\Eclipse) and downloaded the Tapestry
> Tutorial zip.  I extracted the Tutorial files into a folder -
> C:\TapestryTutorial
>
> I found a file called "INFO.txt" and tried to follow the instructions here
> but they didn't help me find anything to work with.
>
> The contents of the Tapestry Tutorial zip look nothing like the directory
> layouts described on the Tapestry Quickstart page.
> http://jakarta.apache.org/tapestry/QuickStart/index.html#Pre-requisistes
>
> I must be missing something basic - somebody please help.
>
> Cheers
> mc
>
>
>
> --
> Murray Collingwood
> Focus Computing
> p +61 415 24 26 24
> http://www.focus-computing.com.au
>
>


-- 
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind.