Hi Adnan,
Thank you, please find attached the console output along the source files:
cd C:\Users\Friendly Shade\Documents\NetBeansProjects\mavenproject1; “JAVA_HOME=C:\Program Files\Java\jdk1.8.0_111” cmd /c “”“C:\Program Files\NetBeans 8.2\java\maven\bin\mvn.bat” -Dexec.args="-classpath %classpath com.mycompany.mavenproject1.Main" -Dexec.executable=“C:\Program Files\Java\jdk1.8.0_111\bin\java.exe” -Dmaven.ext.class.path=“C:\Program Files\NetBeans 8.2\java\maven-nblib\netbeans-eventspy.jar” -Dfile.encoding=UTF-8 org.codehaus.mojo:exec-maven-plugin:1.2.1:exec""
Running NetBeans Compile On Save execution. Phase execution is skipped and output directories of dependency projects (with Compile on Save turned on) will be used instead of their jar artifacts.
Scanning for projects…
Building mavenproject1 1.0-SNAPSHOT
— exec-maven-plugin:1.2.1:exec (default-cli) @ mavenproject1 —
License is Set!
Exception in thread “main” class com.aspose.imaging.coreexceptions.ImageLoadException: Image loading failed. —> class com.aspose.imaging.internal.ew.d: Profiles are not supported
com.aspose.imaging.fileformats.dng.DngImage.a(Unknown Source)
com.aspose.imaging.internal.loaders.DngLoader.load(Unknown Source)
com.aspose.imaging.Image.a(Unknown Source)
com.aspose.imaging.Image.load(Unknown Source)
com.mycompany.mavenproject1.Main.main(Main.java:35)
— End of inner exception stack trace —
com.aspose.imaging.Image.a(Unknown Source)
com.aspose.imaging.Image.load(Unknown Source)
com.mycompany.mavenproject1.Main.main(Main.java:35)
at com.aspose.imaging.Image.a(Unknown Source)
at com.aspose.imaging.Image.load(Unknown Source)
at com.mycompany.mavenproject1.Main.main(Main.java:35)
Caused by: class com.aspose.imaging.internal.ew.d: Profiles are not supported
com.aspose.imaging.fileformats.dng.DngImage.a(Unknown Source)
com.aspose.imaging.internal.loaders.DngLoader.load(Unknown Source)
com.aspose.imaging.Image.a(Unknown Source)
com.aspose.imaging.Image.load(Unknown Source)
com.mycompany.mavenproject1.Main.main(Main.java:35)
at com.aspose.imaging.fileformats.dng.DngImage.a(Unknown Source)
at com.aspose.imaging.internal.loaders.DngLoader.load(Unknown Source)
… 3 more
BUILD FAILURE
Total time: 1.577s
Finished at: Thu Jun 14 15:55:43 COT 2018
Final Memory: 20M/1959M
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (default-cli) on project mavenproject1: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Source:
package com.mycompany.mavenproject1;
import com.aspose.imaging.Image;
import com.aspose.imaging.License;
public class Main {
public static void main(String[] args){
//Set Aspose license..
License license = new com.aspose.imaging.License();
license.setLicense("Aspose.Imaging.lic");
if (License.isLicensed()) {
System.out.println("License is Set!");
}
//Image paths..
String imagesPath = "src/images/";
String imagePath = imagesPath + "2P6A3573.tif";
Image image = Image.load(imagePath);
System.out.println("Image loaded");
}
}