I need to run a command in cmd.exe wherein, the command comes from my eclipse rcp application.
For example, I have a wizard in my application which accepts parameters of the command, and on clicking Finish button, the command should get executed.
Any help regarding how to access the cmd.exe from my eclipse rcp application would be of great help.
as greg-449 said it is the same than in Java, see answers on Want to invoke a linux shell command from Java
Regards,
Related
I am trying to debug a jython script which runs via a java project. I have installed pydev in my eclipse IDE and I followed these instructions(http://www.pydev.org/manual_adv_remote_debugger.html). when I am running the java app while python debug server is running debugger recognizes normally that the jython script is going to be executed halt the excecution and wait for step over or resume commands.
The problem is that PyEdit(editor window) does not highlight the lines which are executed. Also debugger does not know the breakpoints of the scripts. It seems like debugger can not correlate the running thread with the script file.
Is there any way to configure pydev server to correlate debugging with a specific file?
Is there a way I can debug my application (using breakpoints in eclipse) while running it from command line (ubuntu)? I'm using Eclipse Kepler version on Ubuntu 12.04LTS.
I know there's something like attach to process in .net, was wondering if eclipse has some such setup.
Thanks,
Is your application written in C or in Java?
If your application is in C and you are using CDT, you can attach to existing project by:
Run your application from terminal.
In Eclipse CDT, go to main menu "Run"->"Debug Configurations...", double-click "C/C++ Attach to Application" and press "Debug" (you should not need to specify executable and/or project).
For Java applications, see this
I made an eclipse plugin. Testing it via "Run As -> Eclipse Application" works great. It always comes up with a console for me and I can interact with the OSGI shell from the eclipse that launched it. Now I want to try a test deploy where I put my plugin and its dependencies into the dropins folder of an eclipse distro. Once the application launches, how can I bring up the OSGI console so that I can interact with my plugin?
You should add the -console option to the launch arguments. Eg, something like this:
eclipse -console
Note that if -console is added to eclipse.ini, then it must appear before -vmargs.
See here for more information on Eclipse command line arguments.
For my current project I need to run the build of our Java projects. But for the current task I am doing, Eclipse is not helping at all. All tools I need are not integrated in Eclipse, everything I do in Eclipse is clicking the Ant tasks. So is there a way to just do it by command line?
Simply calling the command arguments for Ant does not work.
I am running on Ubuntu Linux.
You can invoke the command-line builder with the following command.
eclipsec -nosplash -application org.eclipse.jdt.apt.core.aptBuild -data %WORKSPACE%
For more information see Headless Building with APT in Eclipse.
I know I can debug embedded (launched from a Java program) Jython with a remote Pydev debugger. Is there a simpler way to do it?
Not really... whenever you're using java and jython, the primary one should be run as usual (as a simple run or debug) and the other one must be remotely debugged.