Running Jasper with vista fonts through PhP on Ubuntu
===

I used iReport to generate the XML for a Jasper report, then created a Java program to read it in, and create my .xls report.  I run it through bash as `java -jar myJar.jar`  Originally, I had an issue with the font, and I went about installing my vista font in my home directory using this method: [install fonts][1]

Once the fonts were installed, everything worked great.  The last step is, I need it to be callable from a website.  I have created a php file that should execute my jar.  It looks like  `exec("/usr/bin/java -jar myJar.jar > log.txt", $result);`

If I run it through the php, I get this error

    Font is not available to the JVM. See the Javadoc for more details.

If I run the exact same command outside of the .php file, in the same exact directory, it works well.  So somehow php isn't able to pick up the fonts.  It is maddening, please help!


  [1]: http://embraceubuntu.com/2007/09/16/installing-vista-fonts-in-ubuntu/