# \nocite{*} problem using moderncv with multibib

I am recently using the moderncv template with multibib package for writing my cv. The problem that I encounter is as the following:

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}
\usepackage{multibib}
\newcites{j}{Journals}

\begin{document}
\makecvtitle

\section{Publications}
\nocitej{wang2012}
\bibliographystylej{plain}
\bibliographyj{publications}
\end{document}


When I try to compile BiBTeX first, it also shows the error message: "Process exited with error(s)" and nothing else....

I do this on a Windows7 system, any suggestions? If not using the multibib package, everything works out fine, which means:

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{casual}
\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}
%\usepackage{multibib}
%\newcites{j}{Journals}

\begin{document}
\makecvtitle

\nocite{*}
\bibliographystyle{plain}
\bibliography{publications}
\end{document}

-
My suggestion would be to use biblatex instead of multibib. I think it is more convenient. But I don't know if that is an option for you. –  jmc Mar 31 '12 at 17:32
I just tried your MWE and it works perfectly on my system. Make sure i) you are using a sufficiently recent version of moderncv (support for multi bib was added in v.0.8, of May 24, 2010) and ii) you are calling BiBTeX correctly, i.e. bibtex j (bibtex publications might call the dummy bibliography file provided with moderncv, which does not has a reference for wang2012) –  Xavier Mar 31 '12 at 23:10
@Xavier~ To your first question, I've just re-downloaded the latest version of moderncv (v1.0). For the second one, I don't quite get what you mean... the bibtex j is simply like a key for the \newcites, which shouldn't have anything related to the publications.bib file? cuz the publications.bib file is simply the storage of the references. Or am I misunderstood any of them? Thanks. –  Taco Apr 1 '12 at 7:39
I found the solutions!! how weird!!! I'll have to open up the followings manually and run them, for example: template.tex --> template.aux --> j.aux, could this be some kind of bug? (I don't really know why and how these happens...) Below is the solution that I found somewhere else for your reference: click here –  Taco Apr 1 '12 at 8:31

1. template.tex (compile the bibtex first --> Quick Build) -->
2. j.aux (open up in TeXmaker -->
Compile with bibtex (and check if process existed normally)) -->