简体   繁体   English

我可以在新安装的Linux中使用Java swing应用程序吗

[英]Can i use Java swing application in a freshly installed Linux

Do the big Linux distributions support java when freshly installed? 全新安装时,大型Linux发行版是否支持Java?
If i have a Java Swing application, will it work in a freshly installed Linux with no internet connection? 如果我有Java Swing应用程序,它将在没有互联网连接的新安装的Linux中运行吗?

I understand that there are no guarantees, but how likely is it for a Linux machine NOT to have any java/Swing support? 我了解没有保证,但是Linux机器不支持Java / Swing的可能性有多大?

if you can check the o/p of command java -version in a terminal, it'll show if you have java installed or not. 如果您可以在终端中检查命令java -version的o / p,它将显示您是否安装了Java。

So if Java or JRE is installed you can surely use your Swing application. 因此,如果安装了Java或JRE,则可以肯定使用Swing应用程序。

But if you are planning to develop a swing app you need to have JDK installed in your system. 但是,如果您打算开发一个swing应用程序,则需要在系统中安装JDK。 you can if the command javac -version is working then you have JDK installed in your system. 如果命令javac -version运行正常,则可以在系统中安装JDK。

But I suspect if any Linux distribution comes pre-installed with a JDK. 但是我怀疑JDK是否预装了Linux发行版。 For once you can find installed JRE by default but it is difficult to get pre-installed JDK in any Linux OS. 您可以一次找到默认情况下已安装的JRE,但很难在任何Linux操作系统中获得预安装的JDK。

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

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