Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a Java executable's filename extension?

If C# or VB.NET is distributed in .exe files as MSIL codes, what is Java distributed in? Is there an equivalent form of .exe files for Java (other than .jar files, which I don't think is good for distribution on computers). Or is there a way to save Java intermediate language(?) in an exe like MSIL does? Then distribute it in an exe which is still run by the JRE upon execution.

like image 516
busukxuan Avatar asked Oct 20 '25 04:10

busukxuan


1 Answers

Java "executables" are either .class or .jar files. It's common to deliver a script (.bat file for Windows) with a Java program to run it.

like image 88
Fred Foo Avatar answered Oct 21 '25 19:10

Fred Foo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!