I am new to latex and lyx and have decided to use it for my thesis. I have a class file that was provided by my university along with an accompanying layout file. I have everything setup in the preamble that is required and even though the latex code shows the \begin{document} statement it keeps telling me that it can't find it when I try to view the .pdf file.

The class files and layouts are all installed properly as far as I know.

Please assist!