cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morrison, John" <John.Morri...@uk.experian.com>
Subject RE: Jikes
Date Fri, 29 Jun 2001 13:28:15 GMT


> -----Original Message-----
> From: Marcus Crafter [mailto:crafterm@fztig938.bank.dresdner.net]
> Sent: Friday, 29 June 2001 13:03
> To: 'cocoon-dev@xml.apache.org'
> Subject: Re: Jikes
> 
> 
> Hi John,
> 
> On Fri, 29 Jun 2001, Morrison, John wrote:
> 
> > Is this sentence in xsp-internals still correct:
> > 
> > "Compiled programming languages must specify their 
> preferred compiler as a
> > sitemap parameter"
> > 
> > or should it read something along the lines of:
> > 
> > "Compiled programming languages must specify their 
> preferred compiler as a
> > parameter in cocoon.xconf"
> 
> 	I think this one - as the compiler option is in:
> 
> <programming-languages>
>     <component-instance name="java"
> class="org.apache.cocoon.components.language.programming.java.
> JavaLanguage">
>       <parameter name="compiler"
> value="org.apache.cocoon.components.language.programming.java.Javac"/>
>       <parameter name="code-formatter"
> value="org.apache.cocoon.components.language.programming.java.
> JstyleFormatter"/>
>       <parameter name="class-loader"
> value="org.apache.cocoon.components.classloader.ClassLoaderMan
> agerImpl"/>
>     </component-instance>
> </programming-languages>
> 
> 	in the cocoon.xconf.

Then the document's in error...

> > Also, has anybody detailed notes for getting jikes to work 
> instead of javac?
> > Can I put the jikes exe within the webapp or does it _have_ 
> to exist in the
> > system path?
> 
> 	In the above snippet change, 
> 
> <parameter name="compiler" 
> value="org.apache.cocoon.components.language.programming.java.Javac"/>
> 
> 	to
> 
> <parameter name="compiler" 
> value="org.apache.cocoon.components.language.programming.java.Jikes"/>
> 
> 	and everything should work fine, as long as Jikes is 
> found in your
> 	system path.
> 
> 	If you're using Jikes 1.14 you'll need to apply my patch from
> 	yesterday to your sources to get error messages printed 
> out correctly.

Thanks, done.

> 	Make sure rt.jar is added to your WEB-INF/lib directory 
> too though as
> 	its needed by Jikes to compile files that include 
> java.* classes.

Ouch! I was trying to bring the size of the webapp *down* ;)

> 	Hope that helps.

Thanks, it did.

J.

> 	Cheers,
> 
> 	Marcus


=======================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission.  There is no intention to
create any legally binding contract or other commitment through the use
of this email.

Experian Limited (registration number 653331).  
Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message