I want to develop an Android App. It consists of three parts:
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.
If I try to launch a class, the console log is the following:
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/ref/FinalReference
...even if I've changed the JRE in the running configuration.
If I understand you correctly, you want one set of classes to be running against the AndroidVM and one against jre7. The whole idea of having projects in eclipse is that they maintain their own separate environment for convenience. Eclipse handles all of the crazy stuff for you and you get to write code against whatever environment you want.
Additionally, if you are trying to put this under version control, you will have to find a way of splitting the project in half, likely preventing you from using any eclipse plugins from handling it. If you don't, you end up having to push a "new" version of both the client and the server even if you only want to update one.
Sorry if I'm way off in the weeds, hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With