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

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: 42003
911
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.
 
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic