Get technical support of Aspose.Slides for .NET, Java, Android, C++, SharePoint, SQL Reporting Services and JasperReports.
Hi All,
Could you kindly provide your suggestions to run the examples provided for aspose.slides for java since i am getting compiling exception itself. Thank you.
Prasad NRV
I have observed your comments. Can you please share details of exception and project so that we may further investigate to help you out.
Hi Adnan Ahmad,
Thank you for the reply.
PFB the details for the same. I followed the instructions from the asposes.slides for java site - How to Run the Examples|Aspose.Slides Documentation. When i imported within eclipse as maven project i got the below compilation exception. Could you kindly help / provide your valuable suggestions for the same.
[INFO] Changes detected - recompiling the module!
[DEBUG] Classpath:
[DEBUG] C:\Users\Q846594\Downloads\Aspose.Slides-for-Java-master\Plugins\Aspose.Slides Java for Pptx4j\Maven\target\classes
[DEBUG] C:\Users\S846594.m2\repository\com\aspose\aspose-slides\17.2\aspose-slides-17.2-jdk16.jar
[DEBUG] C:\Users\S846594.m2\repository\org\docx4j\docx4j\3.2.2\docx4j-3.2.2.jar
[DEBUG] Source roots:
[DEBUG] C:\Users\Q846594\Downloads\Aspose.Slides-for-Java-master\Plugins\Aspose.Slides Java for Pptx4j\Maven\src\main\java
[DEBUG] Command line options:
[DEBUG] -d C:\Users\Q846594\Downloads\Aspose.Slides-for-Java-master\Plugins\Aspose.Slides Java for Pptx4j\Maven\target\classes -classpath C:\Users\Q846594\Downloads\Aspose.Slides-for-Java-master\Plugins\Aspose.Slides Java for Pptx4j\Maven\target\classes;C:\Users\S846594.m2\repository\com\aspose\aspose-slides\17.2\aspose-slides-17.2-jdk16.jar;C:\Users\S846594.m2\repository\org\docx4j\docx4j\3.2.2\docx4j-3.2.2.jar; -sourcepath C:\Users\Q846594\Downloads\Aspose.Slides-for-Java-master\Plugins\Aspose.Slides Java for Pptx4j\Maven\src\main\java; -s C:\Users\Q846594\Downloads\Aspose.Slides-for-Java-master\Plugins\Aspose.Slides Java for Pptx4j\Maven\target\generated-sources\annotations -g -nowarn -target 1.7 -source 1.7
[WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent!
[DEBUG] incrementalBuildHelper#beforeRebuildExecution
[INFO] Compiling 37 source files to C:\Users\Q846594\Downloads\Aspose.Slides-for-Java-master\Plugins\Aspose.Slides Java for Pptx4j\Maven\target\classes
[DEBUG] incrementalBuildHelper#afterRebuildExecution
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error reading C:\Users\S846594.m2\repository\com\aspose\aspose-slides\17.2\aspose-slides-17.2-jdk16.jar; error in opening zip file
[ERROR] error reading C:\Users\S846594.m2\repository\org\docx4j\docx4j\3.2.2\docx4j-3.2.2.jar; error in opening zip file
[ERROR] error reading C:\Users\S846594.m2\repository\com\aspose\aspose-slides\17.2\aspose-slides-17.2-jdk16.jar; error in opening zip file
[ERROR] error reading C:\Users\S846594.m2\repository\org\docx4j\docx4j\3.2.2\docx4j-3.2.2.jar; error in opening zip file
[ERROR] /C:/Users/Q846594/Downloads/Aspose.Slides-for-Java-master/Plugins/Aspose.Slides Java for Pptx4j/Maven/src/main/java/com/aspose/slides/examples/featurescomparison/slides/addimagetoslide/Pptx4jAddImageToSlide.java:[28,17] package org.slf4j does not exist
[ERROR] /C:/Users/Q846594/Downloads/Aspose.Slides-for-Java-master/Plugins/Aspose.Slides Java for Pptx4j/Maven/src/main/java/com/aspose/slides/examples/featurescomparison/slides/addimagetoslide/Pptx4jAddImageToSlide.java:[29,17] package org.slf4j does not exist
[ERROR] /C:/Users/Q846594/Downloads/Aspose.Slides-for-Java-master/Plugins/Aspose.Slides Java for Pptx4j/Maven/src/main/java/com/aspose/slides/examples/featurescomparison/slides/addimagetoslide/Pptx4jAddImageToSlide.java:[30,41] package org.docx4j.openpackaging.packages does not exist
[ERROR] location: package com.aspose.slides
[ERROR] → [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project AsposeSlidesJavaForPptx4j: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.compiler.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:858)
at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
… 20 more
Thanks & Regards,
Prasad NRV
I have observed the issue in pushed Aspose.Slides for Java 17.12 package in maven repository. We are planning to share a hotfix for this in next week. Meanwhile, you can get the latest Aspose.Slides for Java 17.12 jar from our download section.