# build fails because of "Unsupported major.minor version"

**URL:** <https://techcommunity.softwareag.com/t/build-fails-because-of-unsupported-major-minor-version/100502>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [May 8, 2012, 5:24pm UTC](https://techcommunity.softwareag.com/t/build-fails-because-of-unsupported-major-minor-version/100502 "2012-05-08T17:24:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Mamsch](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@David\_Mamsch](https://techcommunity.softwareag.com/u/David_Mamsch)\
**Post date:** [May 8, 2012, 5:24pm UTC](https://techcommunity.softwareag.com/t/build-fails-because-of-unsupported-major-minor-version/100502/1 "2012-05-08T17:24:23Z")

</div>

Hi all,  
after setting up a new work environment I get a strange error message when attempting to ++Activate-Handset:

BUILD FAILED  
…  
C:\wMMobileDesigner\Devices\Android\HTC\G1.xml:52: The following error occurred while executing this line:  
…  
C:\wMMobileDesigner\Tools\Build\BuildScript\v1.0.0\scripts.xml:222: java.lang.UnsupportedClassVersionError: com/softwareag/mobile/functiondemo/ResHandler : Unsupported major.minor version 51.0

Does anyone know what this is referring to?

Btw, Environment variable PATH is set to  
C:\Program Files\Java\jdk1.6.0\_32\bin;  
C:\Program Files\Java\_ME\_platform\_SDK\_3.0.5\bin;  
and project’s JRE is set to jre6.

This happens for different projects and different target platforms equally.

Thanks for any ideas,  
David

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [May 10, 2012, 3:09pm UTC](https://techcommunity.softwareag.com/t/build-fails-because-of-unsupported-major-minor-version/100502/2 "2012-05-10T15:09:04Z")

</div>

Hi David,

That error usually occurs from Java when code is compiled with one SDK target and then run on an earlier one. You don’t have some other JDK lurking around in your PATH that’s taking precedence or something, do you? I have a variety of 1.6 JDKs installed here and they’ve not resulted in this problem occurring,

Nick.

---

<div class="post-metadata">

**Author:** ![David\_Mamsch](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@David\_Mamsch](https://techcommunity.softwareag.com/u/David_Mamsch)\
**Post date:** [May 10, 2012, 3:26pm UTC](https://techcommunity.softwareag.com/t/build-fails-because-of-unsupported-major-minor-version/100502/3 "2012-05-10T15:26:31Z")

</div>

Hi Nick,  
I had indeed installed some different JDK versions, but could not find any irregularities in the settings about that.

However, since today’s automatic update I can’t reproduce the error any more, everything is working as usual again. So even if these two events are not connected, for some reason everything does work again (I haven’t changed any settings or properties since).

Many Thanks for your help and your efforts,  
David

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:01pm UTC](https://techcommunity.softwareag.com/t/build-fails-because-of-unsupported-major-minor-version/100502/4 "2021-04-02T15:01:56Z")

</div>


