[Tex/LaTex] BibTeX cannot find .bib file


I am using TeXworks version 0.4.5 with MiKTeX 2.9 64-bit on Windows 7. When I try to typeset the code

Blah blah \cite{grimm}

Latex warns that there were undefined references, and in the pdf there is a bolded question mark instead of the reference, and the references section at the end is empty. When I run BibTeX by itself I get the error "I couldn't open the database file diss.bib"

diss.bib looks like this

  title= "A theorem about random fields"

Things I have tried which haven't worked:

  • Saving the .bib file in the same place as the .tex file
  • Savind the file in a TDS-compliant root directory C:\tex-biblio\bibtex\bib\mybiblios\diss.bib and adding this as a root directory in MiKTeX (it accepts it as a new root directory, but BibTeX still can't find the .bib file)
  • Creating a BIBINPUTS environmental variable and adding a path to where the .bib file is saved
  • Writing a path to the .bib file when defining which bibliography to use: \bibliography{C:/Users/Sacrebleurgh/Documents/Latex/diss} – i've also tried diss.bib.
  • I originally downloaded MiKTeX with LyX so I tried uninstalling them both and then installing MiKTeX by itself, but the problem persisted.

Any suggestion as to what might be wrong or other things to try would be greatly appreciated.

EDIT: the bibtex log is

This is BibTeX, Version 0.99d (MiKTeX 2.9 64-bit)
The top-level auxiliary file: testdoc.aux
The style file: plain.bst
I couldn't open database file diss.bib
---line 4 of file testdoc.aux
 : \bibdata{diss
 :              }
I'm skipping whatever remains of this command
I found no database files---while reading file testdoc.aux
Warning--I didn't find a database entry for "grimm"
(There were 2 error messages)

Best Answer

I finally managed to solve this problem on my own:

Jabref was encoding the bib-files in 16bit and Bibtex was expecting 8bit-code. After switching to 8bit in the Jabref-options the problem solved itself.

Thank you so much for all your efforts.

Related Question