Topic: java1.4下打包的jar,在java1.5下不能运行的问题

  Print this page

1.java1.4下打包的jar,在java1.5下不能运行的问题 Copy to clipboard
Posted by: alven_lee
Posted on: 2008-01-17 09:19

我现在有一个奇怪的问题。
我的开发环境是
系统:MacOSX 10.3.9
java:1.4.2
IDE:NetBeans5.0
我在这个环境下,开发了一个swing的桌面应用程序,然后通过Netbeans5.0打包成为jar。在开发环境下,和其他同版本的苹果系统下运行没有问题。可是将jar和相关的文件copy到苹果最新的系统Leopard下,无法运行。新的苹果系统下的java是1.5版本。

我想让这个jar在新版本的苹果系统下也能够运行。不知道怎么做。这个问题很着急。

2.Re:java1.4下打包的jar,在java1.5下不能运行的问题 [Re: alven_lee] Copy to clipboard
Posted by: kapianzhe
Posted on: 2008-01-17 21:40

没办法的,只有在jdk1.5下重新打个包了

3.Re:java1.4下打包的jar,在java1.5下不能运行的问题 [Re: alven_lee] Copy to clipboard
Posted by: JiafanZhou
Posted on: 2008-01-18 18:14

The first thing in my mind is that have you ever used Java Native Interface(JNI) libraries? The JNI allows Java code that runs within a Java Virtual Machine (VM) to operate with applications and libraries written in other languages, such as C, C++, and assembly. In addition, the Invocation API allows you to embed the Java Virtual Machine into your native applications. Hence if your do implement JNI, you are not entitled the power to "Compile once, run everywhere".

Regards,
Jiafan


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923