jdk 1.4、1.5、1.6编译代码差异

发布于 2024-12-13 20:28:30 字数 290 浏览 1 评论 0原文

我正在使用一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

岁月如刀 2024-12-20 20:28:30

如果您确实使用较新的功能,看起来您需要 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文