How do I generate bat file to run my app?

In the past, I was able to generate a .bat file automatically in order to run my main() method, but I simply cannot remember how to do this. I have searched everywhere for this in IntelliJ. Maybe this functionality was removed in the new 7.0 version?

This functionality saved me a lot of time in building the classpath in the .bat file.

I am running 7.01Ma.

Thanks!

4 comments
Comment actions Permalink

Hello Nathan,

In the past, I was able to generate a .bat file automatically in order
to run my main() method, but I simply cannot remember how to do this.
I have searched everywhere for this in IntelliJ. Maybe this
functionality was removed in the new 7.0 version?

This functionality saved me a lot of time in building the classpath in
the .bat file.


Such feature was never present in the product. Maybe you had some third-party
plugin installed?

By the way, it's very easy to do manually: just run your main() method from
IntelliJ IDEA using Ctrl-Shift-F10 and copy the command from the console
toolwindow to your .bat file.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

In the past, I was able to generate a .bat file automatically in order to run my main() method, but I simply cannot remember how to do this. I have searched everywhere for this in IntelliJ. Maybe this functionality was removed in the new 7.0 version?

This functionality saved me a lot of time in building the classpath in the .bat file.

I am running 7.01Ma.

This is a better alternative:
http://commons.apache.org/launcher/

If you still insist on that functionality, I suppose you were using the Batch Generator plug-in:
http://plugins.intellij.net/plugin/?id=1027

Ahmed.

0
Comment actions Permalink

Hi Dmitry,

You are correct! I think it was a plugin. Thansk for the tip, it will be just as easy to do what you suggested. :)

Thansk for your help!!

0
Comment actions Permalink

Ahmed,

Thanks for the links! I'll check into the Apache Launcher.

Nathan

0

Please sign in to leave a comment.