• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 41860
908
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic