I am trying to use listings to point to a Java source code file. The file path is different from the Latex document. Below is an example of what I am trying to do, though it doesn't compile it says it can't find the file. How would I point to my file or do the source code files need to be in the root latex folder?
Main.tex
\usepackage{listings}
\usepackage{appendix}
\begin{document}
\input{bibliography.tex}
Appendix.tex
\appendix
\section{Appendix A: Application Code}
\lstinputlisting{/users/<user-directory>/JavaFiles/file.Java}