• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to Have a command line in Eclipse ?

 
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any plugin which give me a command line ?
I mean a console which i could execute My shell commands
and view the result ?

Thank you in Advance.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Masoud,
You can run a Java program from a "command line" through the "run as" box. Real OS commands have to get run through another window with the command prompt. What are you trying to do through the command line that is related to Eclipse? Or is it just to have everything in one place?
 
Masoud Kalali
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for your Post
Indeed i want to have verything in one place .
I have some script which i build for my works , some are from OSS community
I want to have the facility to run my script and OS command from a simple bar(command bar) from within eclipse , its hard to go back to shell execute some script and command copy some result come into eclipse and e.g past them.
one very nice feature which i wat Eclipe (RSA) has not is one click and go feature .
i can not define my own commad inside eclipse , it has no macro recording capability ......
It has some external tools menu item and one button on toolbar , but it does not satisfy me.
It would be very good to have some kind of command bar in eclipse .
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Masoud Kalali:
It would be very good to have some kind of command bar in eclipse


It would. I suspect the reason nothing exists is so that Eclipse can be as platform independent as possible. As an alternative, consider using an Ant script and having that run your scripts from the OSS community. If necessary, Ant can make the operating system call.
 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you can use the External Tools functionality from within Eclipse to do what you want. You can invoke any program, and even cmd.exe on Windows to have a shell window appear that acts just like a normal OS shell window.

Dave
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dave,
Invoking a program that way is good if you know which one it will be in advance. That is a great suggestion if Masoud has a predetermined group of scripts he typically runs.

While you could run cmd.exe that way, it wouldn't help much. The DOS window would still be outside Eclipse; just like if you started it separately.
 
Masoud Kalali
Author
Posts: 531
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Your comments are appropriated. thank you
I need my tools to be integrated with Eclipse .
I usually call scripts / navigate in directories outside the projectscope / execute shell which in some case i need the output in my eclipse windows ...

using External tools menu of eclipse just give me the ability to define some external command , but how much command i can define ? 5 , 6 .... ?
even if i define all command i need , then they will execute in the shell outside of my working environment .

I found a good plugi for this purpose . i hope the owner make it more complete some days. Eclipse Text Editor Extensions (ETEE) in
http://eclipseexeditor.sourceforge.net/
 
reply
    Bookmark Topic Watch Topic
  • New Topic