[Tex/LaTex] empty ’thebibliography’ environment


I get this error and I really don't know how to handle it.
I saw similar questions here and I've tried the solutions, but it didn't work.

\documentclass[a4paper,12pt,fleqn]{book} %{scrartcl}

\usepackage[ngerman, english]{babel}





title = "Scripting language",
author = "[1]",
url = "http://en.wikipedia.org/wiki/Scripting_language"

ERROR – message:

Underfull \hbox (badness 10000) in paragraph at lines 902--904

[47] (/tmp/.thesis.tex.bbl [48]
Chapter 5.

Package natbib Warning: Empty `thebibliography' environment on input line 8.

What should I do?

Best Answer

If you don't provide any \cite commands, then BibTeX (and LaTeX) won't know which entries in Bibliografy.bib to typeset: All of them? Just a few of them -- and, if so, which ones?

The consequence of having a \bibliography directive but no \cite commands is the warning -- not an error, by the way, "just" a warning -- about

Empty thebibliography environment on input line <line number>

or its natbib-based equivalent, viz.,

Package natbib Warning: Empty `thebibliography' environment on input line <line number>

The upshot: Do provide \cite commands!

By the way, if you want all entries in the bib file to be typeset but, for some reason, do not want to \cite the entries explicitly, you could type


prior to executing \bibliography{Bibliografy}.

enter image description here

\documentclass[a4paper,12pt]{article} %{scrartcl}

  title = "Scripting language",
  author = "Wikipedia",
  url = "http://en.wikipedia.org/wiki/Scripting_language",
  year = 2014,