I have trouble starting a new eclipse distribution, that I downloaded from a server at work. 

I extracted the folder to my desktop but running the eclipse.exe gives me the error: A JRE must be available. No java runtime was found at C:Users\my desktop\eclipse etc.

Of course it can not find the javaw.exe in the folder on my desktop as it is installed at program files. I already edited the eclipse.ini and added: -vm C:\Program Files\Java\jre7\bin\javaw.exe 

but it still gives me the same error so it searches for java in the wrong folder. 

What should i try next?


Question: ifpackageloaded question
Answer: The else part should go in the second argument:

\documentclass{book}

%\usepackage{geometry}

\makeatletter
\@ifpackageloaded{geometry}
 {% if the package was loaded
  \newcommand*{\qw}{\itshape}%
 }
 {%else:
  \newcommand*{\qw}{\bfseries}%
 }
\makeatother

\begin{document}
\qw hallo
\end{document}