Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not create class (Electron) #579

Open
Komar0ff opened this issue Oct 18, 2023 · 1 comment
Open

Could not create class (Electron) #579

Komar0ff opened this issue Oct 18, 2023 · 1 comment

Comments

@Komar0ff
Copy link

Komar0ff commented Oct 18, 2023

Hi all, I am writing an application using electron + node-java. 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 node-java does not work. The error I get in the console looks like this:

Uncaught Error: Could not create class ...
java.lang.NoClassDefFoundError.

Looking at the stack trace I came up with the following line:

var clazz = java.findClassSync(name); // TODO: change to Class.forName when classloader issue is resolved.

Looked in java.classpath, all the paths are correct
Question: Is there a solution to this problem?

@RakhimAimaganbetov
Copy link

The same problem
cc @joeferner 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants