D
D
Danil2020-12-16 16:15:01
Java
Danil, 2020-12-16 16:15:01

How to compile a console application into one file?

There is a console game, but in order to play accordingly, you need to run the whole project, so the question is, is it possible to compile the entire project into one file and run it as a regular cmd console?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2020-12-16
@firedragon

Google java pack to exe

O
Orkhan, 2020-12-16
Hasanly @azerphoenix

Google - fat jar
If the application is written in Maven, then use the maven assembly plugin -
tutorials.jenkov.com/maven/maven-build-fat-jar.html
If the application uses gradle, then
https://www.baeldung.com/ gradle-fat-jar
If I understood your question correctly then the above links will help you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question