I first couldn’t clone the repository from Git - it says the repository is not found, so I manually downloaded it.
Now when I try to run test files, I get this error message: “PHP Fatal error: Class ‘com\aspose\slides\Presentation’ not found”
I already downloaded the Aspose.Slides-for-Java jar file but I don’t know how to include it. I was assuming that the PHP test files would automatically include necessary files properly but unfortunately this wasn’t the case.
I know nothing about Java and all I want to do is to use the Aspose Slides Converter from my PHP application.
For newcomers, please keep in mind that you have to put the “aspose.slides-16.7.0.jar” file in tomcat/webapps/JavaBridge/WEB-INF/lib/ folder, and you have to add the “require_once(”…/java/Java.inc") just after the namespace declaration in the PHP file you’re working with (don’t forget to adjust Java.inc relative location).
I am having the exact same issue. I have followed the instructions to a tee and am not able to get the tests to work. I keep getting the fatal error that the class is not found.
I put the aspose.slides.x.x.x.jar file, the license file, and the third party directory in the WEB-INF/lib directory. I’m not sure it is a permissions issue but I cannot access the classes in aspose.slides.x.x.x.
Have you
added the “require_once(”…/java/Java.inc") just after
the namespace declaration in the PHP file you’re working with (don’t
forget to adjust Java.inc relative location).
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.