Caused by: class com.aspose.psd.coreexceptions.ImageLoadException: Image saving failed. ---> java.lang.IllegalAccessError

Caused by: class com.aspose.psd.coreexceptions.ImageLoadException: Image saving failed. —> java.lang.IllegalAccessError: class com.aspose.psd.internal.jw.q (in unnamed module @0x164cdafc) cannot access class sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl (in module java.base) because module java.base does not export sun.reflect.generics.reflectiveObjects to unnamed module @0x164cdafc

@sachin112804 could you please try to add:
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED to javac
Other fix - using the Java 7 or 8.

@Dmitriy.Sorokin thanks. Now I’m able to convert PSD file into PDF.
but another problem is, I found some differences in output file (font size and font type is different, font color is different in some places, logo color is different in some places).
I’m using trail license, so is there any limitation in trial license ?

@sachin112804 Aspose.PSD provides rendering functionality, but it’s hard to make pixel-perfect rendering because we have our own Text Engine and Rendering Engine.
If the rendering highly differs, please share input file for us.

Also, there is a workaround that can be suitable in some cases - Read Only Mode. Please check the example:

    PsdLoadOptions opt = new PsdLoadOptions();
    opt.setReadOnlyMode(true);
    opt.setLoadEffectsResource(true);

    PsdImage img = (PsdImage) Image.load(input, opt);       
    img.save(output);