File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes How can we run .bat file through eclipse? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How can we run .bat file through eclipse?" Watch "How can we run .bat file through eclipse?" New topic

How can we run .bat file through eclipse?

Thummalashankar Reddy

Joined: Feb 08, 2007
Posts: 21
Hi Friends,

I am in a big problem,Thruogh .bat file i can run my application.That .bat file runs the thread and it will do the operation.Now i want to debug that application in Eclipse3.0? Is it possible.
If it is possible how can i do? where can i mention that .bat run up.

T. Shankar Reddy
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
You don't need to run the application through Eclipse to be able to debug it. Look into the online help for "remote debugging".

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410


There are more complex cases than simple standalone Java app debugging. You can run a ".BAT" file as an External Tool. It's how I have to print from Eclipse under Java, since the Eclipse people refuse to build Linux printing into Eclipse itself.

If, within that ".BAT" file, you have a java app(s) that need debugging, just set up the java command line with remote debugging enabled, then have Eclipse attach as a remote debugger.

Mind you, this is the kind of nasty evil stuff I like to do, and isn't appropriate for most situations.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: How can we run .bat file through eclipse?
It's not a secret anymore!