-
-
Notifications
You must be signed in to change notification settings - Fork 163
Fatal error #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Olá @pedroaugustoneto por favor "rode" o método Hello @pedroaugustoneto please run the require __DIR__ . '/vendor/autoload.php';
use JasperPHP\JasperPHP;
$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jasper';
$output = __DIR__ . '/vendor/geekcom/phpjasper/examples';
$options = [
'format' => ['pdf', 'rtf']
];
$jasper = new JasperPHP;
echo
$jasper->process(
$input,
$output,
$options
)->output(); |
Fiz com o código que pediu: ./jasperstarter process "/Applications/XAMPP/xamppfiles/htdocs/g2city/vendor/geekcom/phpjasper/examples/hello_world.jasper" -o "/Applications/XAMPP/xamppfiles/htdocs/g2city/vendor/geekcom/phpjasper/examples" -f pdf rtf Estou utilizando um Mac, também realizei as permissões. |
require __DIR__ . '/vendor/autoload.php';
use JasperPHP\JasperPHP;
// Na linha abaixo utilize o .JRXML ao invés do .JASPER
$input = __DIR__ . '/vendor/geekcom/phpjasper/examples/hello_world.jrxml';
$output = __DIR__ . '/vendor/geekcom/phpjasper/examples';
$options = [
'format' => ['pdf', 'rtf']
];
$jasper = new JasperPHP;
echo
$jasper->process(
$input,
$output,
$options
)->output(); Verifique também a versão do JDK instalado nos S.O. |
Apenas segui os passos do Readme, mas gera o seguinte erro:
Fatal error: Uncaught JasperPHP\Exception\ErrorCommandExecutable: Your report has an error and couldn 't be processed!\ Try to output the command using the function
output();
and run it manually in the console. in /Applications/XAMPP/xamppfiles/htdocs/g2city/vendor/geekcom/phpjasper/src/JasperPHP.php:198 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/g2city/index.php(10): JasperPHP\JasperPHP->execute() #1 {main} thrown in /Applications/XAMPP/xamppfiles/htdocs/g2city/vendor/geekcom/phpjasper/src/JasperPHP.php on line 198The text was updated successfully, but these errors were encountered: