Re: How to learn to cope with Jrex - are there tutorials out there?

Benjy Cline <benjycline-/[email protected]> Wed, 14 Feb 2007 22:55:12 -0500
Newsgroups gmane.comp.mozilla.jrex
Message-ID <[email protected]>
Billy,

You can set the property values in the code as your did or
on the java command line with -D, e.g., -Djrex.dom.enabled=true.
It probably makes sense to do as you did, especially for
jrex.dom.enabled.  If the gre location might move, then
setting it on the command line gives you the ability to
change the gre directory without compiling.

Benjy

Billy wrote:
> Hi Benjy,
> 
> thanks for the greate tutorial you just posted! I have tried your code. But in
> fact the document still returns null there. So there must be a mistake in my
> environment. To make yout program run I had to add:
> System.setProperty("jrex.gre.path","C:/mozilla/";
> System.setProperty("jrex.gre.path","jrex.dom.enabled","true";
> What do you mean when you say: 
> "To run the main() method of Render under Windows, you need to set the CLASSPATH
> to include JRex.jar and set two -D values"? Isnt that the same as my approach?
> What might be my mistake?
> Best regards
> Billy