[android-beginners] Re: Hi.. getting error in creating AVD

2009-09-08 Thread Alok Kulkarni
Just check that u hv the latest java version installed . 1.5 or above is
enough.
See this too.. i know its not related to any coding issue
http://developer.android.com/reference/java/lang/UnsupportedClassVersionError.html

On Tue, Sep 8, 2009 at 11:52 PM, Alok Kulkarni  wrote:

> This error is caused when you compile a .java file with one version of JDK
> and running the .class file with a different version of JVM.
>
> You may say; same version is not required to compile and run.
>
> Yes, that is true. But you can not run .class files that are compiled with
> a newer version than the JVM.
>
> *
> *
>
> *javac (compile) - version: X*
> *java (run) - version: Y*
>
> *
> *
>
> If X is newer than Y; then you may face this issue at runtime.
>
>
>
> On Sun, Sep 6, 2009 at 2:48 PM, monali  wrote:
>
>>
>> Hi,
>>
>> I m getting while creating AVD.
>> I have excuted following command for creating AVD.
>>
>> android create avd --target 2 --name my_avd
>>
>> Getting following error:
>>
>> java.lang.UnsupportedClassVersionError.
>>
>> Kindly suggest for the same.
>>
>> Thanks
>> Monali
>>
>>
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Hi.. getting error in creating AVD

2009-09-08 Thread Alok Kulkarni
This error is caused when you compile a .java file with one version of JDK
and running the .class file with a different version of JVM.

You may say; same version is not required to compile and run.

Yes, that is true. But you can not run .class files that are compiled with a
newer version than the JVM.

*
*

*javac (compile) - version: X*
*java (run) - version: Y*

*
*

If X is newer than Y; then you may face this issue at runtime.


On Sun, Sep 6, 2009 at 2:48 PM, monali  wrote:

>
> Hi,
>
> I m getting while creating AVD.
> I have excuted following command for creating AVD.
>
> android create avd --target 2 --name my_avd
>
> Getting following error:
>
> java.lang.UnsupportedClassVersionError.
>
> Kindly suggest for the same.
>
> Thanks
> Monali
>
>
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---