-3

In C/C++, the .exe file is automatically generated by the compiler when we run the code. My question is how do you generate the .exe file in Java instead of just hitting run every time when we open up the .java file.

1
  • Java generates .class files or .jar files, not .exe files. You need a separate tool to compile it through to .exe. A quick search on the net will show you this. Commented Apr 28, 2015 at 7:27

1 Answer 1

0

To do that, you'd need to create an Executable .jar file. Here's the instructions on how to do it.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.