I had this problem once. If I remember well, I used getQuercus() to get the QuercusContext.
Then I used init() or start(), maybe both, I don't remember correctly and the javadoc [1] doesn't help. I hope it helps. Alexandre. [1] http://www.caucho.com/resin-javadoc/index.html 2010/9/23 Thorsten Kiefer <t.kie...@westernacher.org>: > Hi, > the following code snippet : > > ... > OutputStream os = fo.getOutputStream(); > QuercusEngine qe = new QuercusEngine(); > qe.setOutputStream(os); > qe.executeFile(headerFile.getAbsolutePath()); > os.close(); > ... > > produces the following exception: > > com.caucho.quercus.QuercusErrorException: eval::3: Fatal Error: 'define' > is an unknown function. > at com.caucho.quercus.env.Env.error(Env.java:6415) > at com.caucho.quercus.env.Env.error(Env.java:6301) > at com.caucho.quercus.env.Env.error(Env.java:5985) > at com.caucho.quercus.expr.CallExpr.evalImpl(CallExpr.java:198) > at com.caucho.quercus.expr.CallExpr.eval(CallExpr.java:151) > ... > > why ? > > Regards > Thorsten > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest