ArtOfWarfare
ArtOfWarfare

Reputation: 21478

How can I view stdout for an RCP built in Eclipse?

I'm attempting to write a plugin for an RCP application.

I started with the Hello World plugin template in Eclipse. Ran it. Saw it worked in Eclipse. Exported it and dropped the jar into the plugin directory for the RCP application and started that application. It didn't add the new menu.

I changed the code to instead just have a popup on startup (using the org.eclipse.ui.startup extension point.)

I ran that. Saw it worked in Eclipse. Exported and dropped into the RCP application. It doesn't show the popup.

So... I think at this point I want to somehow view the stdout/stderr for the RCP application. I could add in a simple message that goes to stdout on startup in the plugin and see if that shows up. I could also check it for errors, to see if maybe it says there was somekind of error in loading my plugin or something.

The issue is, when I launch the application from PowerShell, it immediately returns the prompt. How do I end up viewing the stdout/stderr from the application?

Upvotes: 0

Views: 269

Answers (1)

Ardeshana Milan
Ardeshana Milan

Reputation: 373

Correct way to launch eclipse application from CMD is java -jar "%EQUINOXJAR%"

Reference

  1. Eclipse Wiki Starting_Eclipse_Commandline_With_Equinox_Launcher

Upvotes: 1

Related Questions