aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Retrotranslator - EJB class failing with Unsupported major.minor version 50.0 (Java 1.6 to Java 1.4) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Retrotranslator - EJB class failing with Unsupported major.minor version 50.0 (Java 1.6 to Java 1.4)" Watch "Retrotranslator - EJB class failing with Unsupported major.minor version 50.0 (Java 1.6 to Java 1.4)" New topic
Author

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

Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 59
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

Joined: May 26, 2003
Posts: 30764
    
156

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Santhosh Kalisamy
Ranch Hand

Joined: Apr 15, 2008
Posts: 59
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.
 
subject: Retrotranslator - EJB class failing with Unsupported major.minor version 50.0 (Java 1.6 to Java 1.4)