Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Santhosh Kalisamy
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • 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:



 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks Jeanne Boyarsky.

It worked. Strangly, it is working on Eclipse too now. Weird.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic