this question has answer here:
i using client jars in component client jars compiled , run java 7.i not able move java 7 due management decisions .i want client jars work (compile/run) in java 6 way can achieve this?
thanks
i want client jars work (compile/run) in java 6 way can achieve this?
if have source code, can try compiling code on java 6 build platform. however, there no guarantees compile , run as-is:
the code may use java 7 language constructs.
the code may use java 7 specific classes or methods.
the bad news there no magic way deal compilation errors arising above. need hand translate java 7-isms java 6 compatible source code.
but news if code does compile on java 6 jdk, there pretty chance run on java 6 jre.
if don't have access source code, problem much, harder
it theoretically possible translate bytecode earlier version, tools doing tend have significant limitations. here possible leads:
- retrotranslator translates java 1.5 bytecodes (some) older platforms.
- retroweaver same thing.
note i've not managed find "retro" tool translates java 7 java 6. (either nobody has done work, or there java 7 makes problem intractable.)
Comments
Post a Comment