简体   繁体   English

适用于32位和64位平台的Java应用程序

[英]Java Application for 32-bit and 64 bit platform

I have a java application (.exe) file i want to distribute this file so that others can use it. 我有一个java应用程序(.exe)文件,我想分发此文件,以便其他人可以使用它。

I have a doubt now whether my application will run in windows OS irrespective of bit ( either in 32 or 64 bit ) ? 我现在怀疑我的应用程序是否会在Windows操作系统中运行而不管位(32位还是64位)? Or do i need any specific files for my application to run in both. 或者我是否需要我的应用程序的任何特定文件才能在两者中运行。

In java you generate classes and jars/libs for storing/distributing them. 在java中,您生成用于存储/分发它们的类和jar / lib。 You can generate .exe files to run an application, but this isn't a practice I've seen often and usually requires some 3rd party program. 您可以生成.exe文件来运行应用程序,但这不是我经常看到的做法,通常需要一些第三方程序。

Assuming you have a .exe file generated on a 32 bit machine, it should work without problems on 64. The reverse isn't possible, but I may be mistaken. 假设您在32位计算机上生成了.exe文件,它应该在64上没有问题。反过来是不可能的,但我可能会弄错。

One thing that you must be careful is the version of java used for generating your classes. 您必须注意的一件事是用于生成类的java版本。 The remote machines should have a similar java version installed. 远程机器应该安装类似的Java版本。 Can be a newer version than the one you used. 可以是比您使用的版本更新的版本。 (Eg. if you used Java 7, it's ok if the target machine uses Java 8) (例如,如果你使用Java 7,那么如果目标机器使用Java 8就可以了)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM