jdk 1.4、1.5、1.6编译代码差异
我正在使用一个Web应用程序,其中java代码是使用jdk 1.4编译的,我使用weblogic 8.1作为我的应用程序服务器,它也使用jdk 1.4,但是使用jdk 1.5编译的手指可数类文件很少。它类似于使用 jdk 1.4 和 jdk 1.4 编译的类文件的混合体。 1.5.现在,当我尝试访问应用程序的部分时,需要按顺序执行使用 1.5 jdk 编译的类文件。它将抛出 ClassDefnNotFound 异常。
有什么建议吗?我还需要解释使用 jdk 1.4 和 jdk 1.5 编译的类文件之间的差异(如果有)。
提前致谢
I am using a web application were the java code is compiled using jdk 1.4 and i use weblogic 8.1 as my app server which also use jdk 1.4, but there are few finger countable class files compiled using jdk 1.5. Its something like a mix of class files together compiled using jdk 1.4 & 1.5. Now when i try to access the part of application which requires the class files compiled with 1.5 jdk to be executed in order. It will throw ClassDefnNotFound exception.
Any suggesstions.?. I also would require an explaination on the differences between class files compiled using jdk 1.4 and jdk 1.5, if there are any .
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您确实使用较新的功能,看起来您需要 retroweaver 来反向转换您的新代码。如果不是,请在编译所有内容时将 -target 设置为 1.4。
Looks like you need retroweaver to back-convert your newer code, if you are really using newer features. If you are not, set -target to 1.4 when compiling everything.