Relative Content

Tag Archive for javamongodb

error: package com.mongodb.**** does not exist

I am currently working on a student management system project. I have connected my VS code to MOngoDB successfully. I also added the MongoDB connector jar file to my reference library (VS code). My code works on Eclipse but everytime I tried it to run on VS code it shows error. But VScode doesn’t show any error in my code. It only happens when I run it. Since the code is very long I am giving an exaple code:

Failed to import MongoDB libraries

I am a beginner java developer. I am currently working on a student management system project. Since I am using VS code I have created my java project using ‘no build tool’ (Didn’t chose Maven Project). I have completed the basics of java alraedy. This is the first time I am working with databases. I chose MongoDB for my project. I am using VS code IDE and I have successfully connected MongoDB to VS code.But whenever I try to import mongodb libraries to my main java code I am encountiring errors.