简体   繁体   English

Windows 7和Windows 10的Java程序

[英]Java Program for Windows 7 & Windows 10

I'd like to write a desktop app using Java and I'm wondering if I can get the app to execute on computers running both Window 7 and Windows 10. I've got Eclipse set up with JavaSE 1.8 and I'm running Windows 8. 我想使用Java编写桌面应用程序,我想知道是否可以在运行Windows 7和Windows 10的计算机上执行该应用程序。我已经使用JavaSE 1.8设置了Eclipse,并且正在运行Windows 8。

Thanks! 谢谢!

Yes. 是。 Once it's compiled, you can pass your app on to any computer with a JVM (Java virtual machine, aka "any machine with java installed") and your application will be able to be run. 编译后,您可以将您的应用程序传递到具有JVM的任何计算机上(Java虚拟机,也称为“装有Java的任何计算机”),然后您的应用程序将可以运行。 There are versioning caveats, for instance an old version JVM won't be able to run newer code (compiled to a higher version) but you probably won't have to worry about it. 有一些版本方面的警告,例如,旧版本的JVM将无法运行较新的代码(编译为较高的版本),但是您可能不必担心。 If you need to, you can set your compiler to compile to earlier versions (and you can set this in eclipse) but you probably won't have to bother with it. 如果需要,可以将编译器设置为编译到较早的版本(并且可以在eclipse中进行设置),但是可能不必理会它。

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

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