Salve a tutti,
apro questo argomento perche sviluppando con Android, cercando in particolare di creare un client per web-services mi sono accorto che la libreria java.rmi ed altre non sono state incluse nel OS di Android.
Pensavo si potesse risolvere creandomi una classe che mi generasse le eccezioni semplicemente ma andando a compilare mi sono accorto che la DavilVM non ne vuole sapere di copilarle.Mi spiego meglio entrando nei particolare.
java.rmi.Exception č una (invocazione di metodi da remoto in questo caso di eccezioni)
Cmq implementando un web-Services con axis2 non sapevo come ovviare al problema quindi mi sono creato nel progetto del ClientAndroid for WEb-services una package java.rmi con all'interno una classe RemoteExceprion cosi implementata:
package java.rmi;
public class RemoteException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
public RemoteException()
{
super();
}
public RemoteException(String msg)
{
super(msg);
}
public RemoteException(String msg, Exception ex)
{
super(msg, ex);
}
}
----------------------
ma andando a compilare questo č l'errore:
[2009-09-22 11:11:06 - ClientAWEBSER]
trouble processing "java/rmi/RemoteException.class":
[2009-09-22 11:11:06 - ClientAWEBSER]
Attempt to include a core VM class in something other than a core library.
It is likely that you have attempted to include the core library from a desktop
virtual machine into an application, which will most assuredly not work. If
you really intend to build a core library -- which is only appropriate as
part of creating a full virtual machine binary, as opposed to compiling an
application -- then use the "--core-library" option to suppress this error
message. If you go ahead and use "--core-library" but are in fact building
an application, then please be aware that your build will still fail at some
point; you will simply be denied the pleasure of reading this helpful error
message.
[2009-09-22 11:11:06 - ClientAWEBSER]1 error; aborting
[2009-09-22 11:11:06 - ClientAWEBSER]Conversion to Dalvik format failed with error 1
------------------
------------------
qualcuno są come risolvere????ideee????