• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Retrotranslator - EJB class failing with Unsupported major.minor version 50.0 (Java 1.6 to Java 1.4)

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Friends,

We are using Retrotranslator to translate an application developed with JDK 1.6 to run on Java 1.4 run time environment.

Translation working good with the frontend application (Struts2, JDom2...etc). But, it is failing for our EJB class with the following exception...

Development Java Environment : jdk1.6.0_31
Compilation Java Version : Java 1.6
Run Time JDK : jdk1.4.2_04
RetroTranslator : net.sf.retrotranslator.transformer.RetrotranslatorTask @ retrotranslator-transformer-1.2.9.jar


application.xml (on EAR file)



ejb-jar.xml


ant build task for translation



Exception:



 
author & internet detective
Posts: 41775
887
Eclipse IDE VI Editor Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The error message tells you the jar files aren't using Java 1.4. There are a few reasons this could be. The most likely one is that you aren't using the "after" version of the jars. I notice that the documented example uses a different directory for the source jars and destination jars. Can you try that? And look at the generate file sizes to make sure they are in fact different.
 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Jeanne Boyarsky.

It worked. Strangly, it is working on Eclipse too now. Weird.
 
Legend has it that if you rub the right tiny ad, a genie comes out.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic