How to develop java only parts in android
<p>I want to develop an Android App. It consists of three parts:</p>

<ul>
<li>client (the app)</li>
<li>server (java-only)</li>
<li>domain (used by client AND server)</li>
</ul>

<p>How can I develop client and server in one Eclipse project? There must be a way to set the correct java-only environment (jre7) for a package instead of the AndroidVM.</p>

<p>If I try to launch a class, the console log is the following:</p>

<pre><code>Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/ref/FinalReference
</code></pre>

<p>...even if I've changed the JRE in the running configuration.</p>
