Reputation: 1165
I want to build a command line app with intellij 8.1. When selecting the project type I don't see anything that seems like it would fit. Am I missing something?
When building a web app it provides a src and an output dir etc. Any suggestions would be greatly appreciated.
Thanks,
Andrew
Upvotes: 1
Views: 2454
Reputation: 402335
Use the Java module type for the command line Java applications. Build | Build Jars will help you to create an executable jar file which can be run from the command line:
java -jar jarname.jar
If you want Windows native executable, consider using some third-party tools like Launch4j.
Upvotes: 2