I have a project "A" and I need to call a class "c" from another project "B".
I have done the following. Click in "A" -->Properties -->Build Path --> and in one tab of Java Source I selected the project B. --> Accept
Now I can create objets of Class "c" but when I run the project I get "ClassNotFoundException"
Update,
I keep getting java.lang.ClassNotFoundException.
In "JSF" -->Properties -->Build Path --> Projects ---> I Added the Project:
In Run --> Run Configurations --> ClassPath I had:
and now I have added the project "JIRA" and "JIRA dependencies"
JIRA project has this dependencies:
And I get the following error:
but this class is in M2_REPO:
SOLUTION
I add "JIRA dependencies" only in JARs without Maven: and now it´s run.
You should add another project in "Project" tab, or add class folder of the project in "Libraries" tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With