Patriks
Patriks

Reputation: 1012

when importing project from eclipse to intelliJ

I have a multi-module project in Eclipse, which works fine.

Now I want to work with IntelliJ (I have 12.1), so I imported project to IntelliJ, and have configured below things in it:

Everything looks OK, but when I run the project it shows:

Caused by: java.lang.NoClassDefFoundError: org/xx/yyy/zzzz

Although org.xx.yyy.zzzz class exist in model module, which is already added to web module (my project has 2 modules web and model), and also scope of dependency is set to provided.

What should I try to resolve this problem? Help me if I am missing something.

Upvotes: 0

Views: 166

Answers (1)

Patriks
Patriks

Reputation: 1012

Finally I got the answer.

I kept the scope to provided, and Added model module to artifacts and it worked. :)

Upvotes: 1

Related Questions