Thanks for the response. I want to narrow down the problem. It seems to me that rjb can not load iText even though I installed pdf-stampers as a gem.
I have looked at prawn but it doesn't have the features I wanted. There is a bug about installing pdftk on snow leopard. Craig White wrote: > I don't follow at all what you are trying to do and why. > > Once you run irb from your local installation instead of running > 'script/console' from within your rails root directory, you are pretty > much not running rails at all but just basic ruby and at that point, you > are not on topic here. > > Then you've seeming installed the iText jar files in your rails > application which should have been installed as gems and automatically > loaded from the appropriate ruby/gems path. > > The error you are asking about is from rjb which likewise, has nothing > to do with rails. > > My own experience with pdf-stamper was with rails 1.2.x and though it's > a gem and should be functional with current versions of rails I'm a > little hesitant to recommend it because I simply don't know and that is > why I tried to steer you onto a methodology that didn't require > java/rjb, especially since I gathered that your experience with ruby and > with rails are somewhat limited. > > Craig > > On Wed, 2010-03-10 at 20:38 +0100, John Wu wrote: >> => [] >> Craig White wrote: >> > ---- >> > ---- >> > depends upon what/where you've got installed (jre or jdk) but >> > generally... >> > >> > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JAVA_HOME/jre/lib/i386: >> > $JAVA_HOME/jre/lib/i386/client > > > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

