We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unable process mpp if export my program with aspose tasks lib as a jar file

Hi,

So I want export my program with aspose tasks lib into a runnable jar file but I hit with an error.

Exception in thread "main" java.lang.NoClassDefFoundError: com/aspose/tasks/con
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.aspose.tasks.auv.c(Unknown Source)
        at com.aspose.tasks.auv.a(Unknown Source)
        at com.aspose.tasks.bat.a(Unknown Source)
        at com.aspose.tasks.avn.l(Unknown Source)
        at com.aspose.tasks.bat.C(Unknown Source)
        at com.aspose.tasks.avn.h(Unknown Source)
        at com.aspose.tasks.bat.q(Unknown Source)
        at com.aspose.tasks.bat.a(Unknown Source)
        at com.aspose.tasks.bat.a(Unknown Source)
        at com.aspose.tasks.bot.a(Unknown Source)
        at com.aspose.tasks.Project.a(Unknown Source)
        at com.aspose.tasks.Project.a(Unknown Source)
        at com.aspose.tasks.Project.<init>(Unknown Source)
        at com.aspose.tasks.Project.<init>(Unknown Source)
        at samplejar.sample.handleTask(sample.java:39)
        at samplejar.sample.main(sample.java:79)
Caused by: java.lang.ClassNotFoundException: com.aspose.tasks.con
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 28 more

Im updating Aspose Tasks (java via Maven) from V20.1 to V20.11 and I don’t see this issue when I using V20.1.

Here’s the sample program I used to test: samplejar.zip (9.6 KB)

@zhilin39

I have opened a ticket with ID TASKSJAVA-1280 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

@zhilin39

Can you please provide the source MPP that you are using on your end and which is failing as we need that for further investigation.

@mudassir.fayyaz,

I feel its more of the export/compilation issue rather than processing issue but I still provide you with the sample file. thanks

project_sample.zip (61.9 KB)

@zhilin39

Thank you for sharing the details. We will share feedback with you as soon as the issue will be addressed.

Hello @zhilin39!
Did you try to use Aspose.Tasks for Java 20.12 or Aspose.Tasks for Java 21.2?

Hi, @alexanderefremov1

not yet. have this issue been fixed ? thanks

@zhilin39

Can you please try using the latest Aspose.Tasks for Java 21.3 on your end. If there is still an issue then please share the feedback wit us.

According to our issue tracker the issue has been fixed.