Skip to content

Could not create class error instructions  #596

@velara3

Description

@velara3

I am trying to use this project with my nodejs project instead of a java project and in my nodejs project I have the basic example code from this project working and it is creating an array list.

But now I would like to include a library / jar from the java project and I am getting an error:

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

I looked in my Java project and I don't see the libraries. I found out they are in the /user/.m2 directory. This is where Maven caches them.

I saw another post somewhere that someone else solved the issue by copying their libraries and jars into their nodejs project. I could do this. But is there a better way?

I don't believe I need to use Maven for this project but I haven't got that far.

I saw a note about a java-maven package but none of it made sense. I Have one library / jar I want to use and that's it.

--
Also, as a side note I think this error or this issue should be part of the instructions.
Also, thank you for this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions