简体   繁体   中英

Executable JAR File concern?

I have a project and i want to make it available for everyone. Do jar files only work if there is a jdk or java installed or should i make the file windows exe Sorry i'm a newbie when it comes to windows related files?

 public static  void main(String[] args)   { 
 System.out.println("Hellowordld");
 }

In order to execute a jar file, all you need is a JRE - you can download on Oracles's web site. You can use the JRE that comes inside your JDK too, but remember, not everyone will have a JKD(this is for development), they will probable download a JRE and execute the installation tool. You don't need do make an exe, especially if you have Linux users too. The jar is enough.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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