This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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
Author

How can we run .bat file through eclipse?

Thummalashankar Reddy
Greenhorn

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.

Thanks
T. Shankar Reddy
Ilja Preuss
author
Sheriff

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: 16022
    
  20

ALTHOUGH.

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How can we run .bat file through eclipse?