This error and your question are difficult at best to answer with the information provided. You really need to indicate OS, LO version & bitness, what type of DB are you connecting to, the Java version & bitness for starters along with the entire error message.
Also your question states
... when trhying to load anew base file which is contradictory. Either you get this when creating a new file or you are loading an existing file. If the latter what type of DB are you using?
Regardless, here are a few links to review depending on the real problem:
No java or incorrect Java - on firefox and have loaded java 32
Edited 2018-05-25 to correct following link:
Existing Base file connected to Access - I got error “The connection to the data source “DB file name” could not be established.”
File from Dropbox or Google Drive - need more info
If the above doesn’t answer your question PLEASE provide MORE information!!!
If this answers your question please tick the (upper left area of answer). It helps others to know there was an accepted answer.