[Tex/LaTex] Latex cannot find the .bib file

bibliographiesbibtexjabrefundefined

I am using Texmaker in combination with Miktex and I am writing an article, but Latex can't find my .bib file. The .bib file is located in the same directory as my article latex file. I made .bib files in several ways: by using Mendeley, Jabref and by bibtex itself. In all three the cases I get warnings in Latex: "there were undefined references" and "citation 'citation1' on page 5 undefined".

I guess there is something wrong with my Latex?

Can someone please help me?

I made a MWEB of the report and a MWEB of the bibliography file.

 \documentclass[11pt]{article}

 \usepackage[utf8]{inputenc}

 \usepackage{cite}
 %\usepackage{natbib}

 \begin{document} 
 \pagenumbering{gobble}
 \title{Report}
 \author{Charlie}
 \maketitle
 \newpage
 \mbox{}
 \pagebreak

 \section{Theory}
 Blabla \cite{Gazibegovic2017}

 \pagebreak

 \section{Bibliography}

 \bibliography{biblio.bib}
 \bibliographystyle{plain}

 \end{document}

and the mweb from the bibliography

 @article{Gazibegovic2017,
 author = {Gazibegovic, Sasa. \textit(et al)},
 journal = {Nature},
 number = {7668},
 pages = {434-438},
 title = {{Epitaxy of advanced nanowire quantum devices}},
 volume = {548},
 year = {2017}
 }

I hope this information is sufficient for you to help me.

Kind regards

Best Answer

Compiling the following MWEB with

pdflatex document.tex
bibtex document.aux
pdflatex document.tex
pdflatex document.tex

gives the right result.

\documentclass{article}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
    @book{key,
        author = {Author, A.},
        year = {2001},
        title = {Title},
        publisher = {Publisher},
    }
\end{filecontents}

\begin{document}

    \cite{key}

    \bibliographystyle{plain}
    \bibliography{\jobname}

\end{document}