javax.naming.NoInitialContextException: IDE Issue

34 Views Asked by At

I have been running a gradle project in eclipse but recently moved to intelij but when I try to run this project in intelij I get the following exception:

Caused by: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or in an application resource file: java.naming.factory.initial.

The Gradle project is compiling fine and I'am able to run it but while debugging it fails at a line where it's running file in eclipse.

Not sure what to do about it.

0

There are 0 best solutions below