I am trying to use aspose.diagram with electron. For building I use electron forge.
What is the problem?
When building “electron-forge make”, the application is built without visible problems, but the functionality related to aspose.diagram does not work. The error I get in the console looks like this:
“Uncaught Error: Could not create class com.aspose.diagram.Act
This error typically occurs when there is a problem with classpath or library dependencies.
Please ensure that you have the Aspose.Diagram for Node.js via Java library correctly added to your project. It should be in the classpath so that your application can find the necessary classes at runtime. You can usually add it as a dependency in your project’s build configuration.
Please ensure that your Java environment is properly configured. Make sure that the correct Java runtime environment (JRE) or Java Development Kit (JDK) is installed and set up on the system.
Could you please give us environment details with the version of Electron or Electron Forge,and the version of Diagram library .
When we running with “npm start”,It shows an error “Uncaught Error: Cannot find module ‘java’” in the output app.
So we could not load file with the button. electron.PNG (28.0 KB)
And after we running “nmp install java”,it shows “Error: Could not determine Electron version. Make sure that ‘npm install’ (or ‘yarn’) has been run before invoking electron-forge.”
We could not know the reason for this issue because we had already installed Electron previously.
We need evaluate the issue further.