Got the solution for this problem…. Wooo
-
Make sure that Appliction server (Tomcat etc.) uses the same java runtime version as per what your java application is using.
-
Make sure that your using jre path not jdk path for the runtime enviroments
-
Make sure when creating a project select the appropriate server runtime versions.