Skip to content
Sign upLog in
← Back to Community

.EXE or .JAR

Profile icon
DavidEvatt

IS there a way I can export a file as a .exe or an executable jar file?

Voters
Profile icon
DavidEvatt
Comments
hotnewtop
Profile icon
SixBeeps

Run this.

mkdir build && javac -d ./build *.java && cd build && jar cvf YourJar.jar *

That's how you do it on a local machine, it should be the same in a Repl.

Profile icon
DavidEvatt

@SixBeeps
I ran that command and now I have a build folder, but what do I do with it? I exported the project, and the build folder wasn't there.