I'm using TeXstudio and trying to list the bibliography content in the document. I compiled the .tex file and there is no errors but I got no output.
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{indentfirst}
\usepackage{mathtools}
\usepackage{amsmath}
\usepackage{blindtext}
\usepackage{changepage}
\usepackage{lipsum}
\usepackage{filecontents}
\usepackage[style=authoryear, backend=bibtex]{biblatex}
\newenvironment{subs}
{\adjustwidth{2em}{0pt}}
{\endadjustwidth}
\begin{filecontents}{sample.bib}
@article{awad2011machine,
title={Machine Learning methods for E-mail Classification},
author={Awad, WA and ELseuofi, SM},
journal={International Journal of Computer Applications},
volume={16},
number={1},
year={2011},
publisher={International Journal of Computer Applications, 244 5 th Avenue,\# 1526, New York, NY 10001, USA India}
}
@article{willett2006porter,
title={The Porter stemming algorithm: then and now},
author={Willett, Peter},
journal={Program},
volume={40},
number={3},
pages={219--223},
year={2006},
publisher={Emerald Group Publishing Limited}
}
@inproceedings{mccallum1998comparison,
title={A comparison of event models for naive bayes text classification},
author={McCallum, Andrew and Nigam, Kamal and others},
booktitle={AAAI-98 workshop on learning for text categorization},
volume={752},
pages={41--48},
year={1998},
organization={Citeseer}
}
@article{pop2006approach,
title={An approach of the Naive Bayes classifier for the document classification},
author={Pop, Ioan},
journal={General Mathematics},
volume={14},
number={4},
pages={135--138},
year={2006},
publisher={University}
}
\end{filecontents}
\bibliography{sample}
\begin{document}
\nocite{*}
\printbibliography
\end{document}
I tried so many proposed solutions but unfortunately nothing worked

biblatexuses\addbibresource{sample.bib}. Try that instead of\bibliography{sample}. – Werner Jan 19 '17 at 07:00\usepackage[style=authoryear, backend=bibtex]{biblatex}– Mico Jan 19 '17 at 07:56biberinstead ofbibtex, there is no issue, nor there is withbibtexif I add another set of braces likepublisher={{...}}. On the other hand, thepublisherfield is not used for the@articletype, so removing it seems to be a good idea. – egreg Jan 19 '17 at 08:18\addbibresourceor\bibliographyin this case. But note that the file extension is mandatory with\addbibresource, so it should be\addbibresource{sample.bib}. – moewe Jan 19 '17 at 08:28backend=bibtex, so you have to run BibTeX and not Biber. You should switch tobackend=biberand run Biber, see here for help in getting biber to run in your favourite editor. Note also that normally, thepublisherfield does not contain the full address of the publisher, there is thelocationfield for the city of the publisher. But, as egreg noted, thepublisherfield is ignored for@articles anyway. – moewe Jan 19 '17 at 08:30