[Note: The accepted answer is not quite correct. To reference an orthogonal complements we require some kind of non-degenerate form.]
Let $L$ be a finite dimensional non-abelian Lie algebra. Non-abelian means $L \not= Z(L)$, so $\dim(Z(L))<\dim(L)$. It just remains to rule out $\dim(Z(L))=\dim(L)-1$. For sake of contradiction assume this is true.
Since $L$ is non-abelian, there is some $x,y \in L$ such that $[x,y] \not=0$. Consider $x+Z(L),y+Z(L) \in L/Z(L)$ (the quotient algebra). Since $\dim(L/Z(L)) = \dim(L)-\dim(Z(L)) = 1$, we must have that one of our cosets is a multiple of the other. Without loss of generality assume $x+Z(L) = c(y+Z(L))$ for some scalar $c$. Then $x+Z(L)=cy+Z(L)$ so $x-cy \in Z(L)$, say $x-cy=z \in Z(L)$. Thus $x=cy+z$. Then $[x,y] = [cy+z,y] = c[y,y]+[z,y]=0$ by alternation and the fact that $z$ is central. This contradicts our assumption that $[x,y]\not=0$. Therefore, $\dim(Z(L))=\dim(L)-1$ is impossible.