I'm using the below script to rotate the table, but it keeps giving an error l.208 \end{table}
\documentclass[12pt]{report}
\usepackage{float}
\usepackage[centertags]{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb} %AAB95
\usepackage{amsthm}
\usepackage{tabularx}
\usepackage{comment}
\usepackage{newlfont}
\usepackage{XThesis_TJBLACK}
\usepackage{xtocinc}
\usepackage{graphicx}
\usepackage{changebar}
\usepackage{subfig}
\usepackage{algorithmic}
\usepackage{subfloat}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{cite}
\usepackage{amsmath}
\usepackage[T1]{fontenc}
\newtheorem{theorem}{Theorem}[section]
\usepackage[active]{srcltx} \newlength{\defbaselineskip}
\setlength{\defbaselineskip}{\baselineskip}
\newcommand{\setlinespacing}[1]%
{\setlength{\baselineskip}{#1 \defbaselineskip}}
\newcommand{\doublespacing}{\setlength{\baselineskip}%
{1.5 \defbaselineskip}}
\newcommand{\singlespacing}{\setlength{\baselineskip}{\defbaselineskip}}
\renewcommand{\baselinestretch}{1.3}
\renewcommand*{\bibname}{References}
\usepackage{tabularx,booktabs,ragged2e}
\newcolumntype{Y}{>{\RaggedRight\hsize=1.35\hsize}X}
\newcolumntype{Z}{>{\Centering\hsize=.95\hsize\arraybackslash}X}
\newcommand{\A}{{\cal A}}
\newcommand{\h}{{\cal H}}
\newcommand{\s}{{\cal S}}
\newcommand{\W}{{\cal W}}
\newcommand{\BH}{\mathbf B(\cal H)}
\newcommand{\KH}{\cal K(\cal H)}
\newcommand{\Real}{\mathbb R}
\newcommand{\Complex}{\mathbb C}
\newcommand{\Field}{\mathbb F}
\newcommand{\RPlus}{[0,\infty)}
\newcommand{\norm}[1]{\left\Vert#1\right\Vert}
\newcommand{\essnorm}[1]{\norm{#1}_{\text{\rm\normalshape ess}}}
\newcommand{\abs}[1]{\left\vert#1\right\vert}
\newcommand{\set}[1]{\left\{#1\right\}}
\newcommand{\seq}[1]{\left<#1\right>}
\newcommand{\eps}{\varepsilon}
\newcommand{\To}{\longrightarrow}
\newcommand{\RE}{\operatorname{Re}}
\newcommand{\IM}{\operatorname{Im}}
\newcommand{\Poly}{{\cal{P}}(E)}
\newcommand{\EssD}{{\cal{D}}}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\theoremstyle{definition}
\newtheorem{defn}{Definition}[section]
\theoremstyle{remark}
\newtheorem{rem}{Remark}[section]
\numberwithin{equation}{chapter}
\renewcommand{\theequation}{\thechapter.\arabic{equation}}
\usepackage{mwe,subfig,calc}
\def\trans{^{\mathsf{T}}}
\newlength{\tempheight}
\newlength{\tempwidth}
\newcommand{\rowname}[1]
{\rotatebox{90}{\makebox[\tempheight][c]{#1}}}
\newcommand{\columnname}[1]% #1 = text
{\makebox[\tempwidth][c]{#1}}
\usepackage{courier}
\begin{document}
\begin{sidewaystable}
\centering
\caption{Your caption here}
\begin{tabular}{l|lllllll}
\hline
sssssssss/sssss ss ssssssssss & sssssssss & ssssssss & ssssssss & sssssssssss & ssssssssss & sssssssss ssss sssssssss ssssssssss & sssssssss ssss sssssssss ssssssssssss \\ \hline
sssss ssssssssssss & sss & sss & sssssssss, ssssssssssss & sssssssss sssssss, sssssss & ssssss & & \\
ssssssssss ssssssssssss & sss & ss & sssssssss & ssssss ssssss & ssssss & & \\
ssssssss ssssssss & ss & sss & sssssssss, sssssssss sssssssssss & ssssssssssss, sssssssss & ssssss & & \\
ssss sssss & sss & sss & sssss, ssssssssss sssssss, ssssss ssssssss & ssssssssssss & sssssss & & \\
ssss & ss & sss & sssssss ssssss, sssssssss ssssssss & sssssssss & sssssss & & \\
sss & ss & sss & ssssssss ssssssssss & sssss sssssssss & sssssss & & \\
ssssss ssssss & ss & sss & ssssssss ssssssssss & sssssssss ss sssss sssssss & sssssss & &
\end{tabular}
\end{sidewaystable}
\end{document}

sidewaystableinside atable. Delete the\begin{table}and\end{table}instructions. – Mico May 21 '15 at 00:15\usepackage{rotating}as when I commented the table the error still appeared, but when I removed the package the file complied without errors. Any thoughts? – Tak May 21 '15 at 00:26tabularxenvironment, to find a way to make the table fit in the available space. – Mico May 21 '15 at 00:27